/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * supervision_rh_prenomina.java
 *
 * Created on 9/01/2012, 10:15:52 AM
 */

package si_rhnominafacil;


import java.awt.print.PrinterException;
import java.sql.*;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.*;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Calendar;

import java.text.ParseException;
import java.text.*;
import javax.swing.table.DefaultTableCellRenderer;

import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.print.PageFormat;
import java.awt.print.Printable;
import java.awt.print.PrinterException;
import java.awt.print.PrinterJob;

/**
 *
 * @author Michelle
 */
public class rh_empleados_prenomina extends javax.swing.JFrame implements Printable{

    private javax.swing.table.DefaultTableModel jtable_modelo_prenomina;
    private javax.swing.table.DefaultTableModel jtable_modelo_patrones;
    private javax.swing.table.DefaultTableModel jtable_modelo_periodo;
    private javax.swing.table.DefaultTableModel jtable_modelo_detalleprenomina;
    private javax.swing.table.DefaultTableModel jtable_modelo_detallenomina;
    private javax.swing.table.DefaultTableModel jtable_modelo_detallenominap;

    private javax.swing.table.DefaultTableModel jtable_modelo_detallenominaf;
    private javax.swing.table.DefaultTableModel jtable_modelo_detallenominanof;

    private javax.swing.table.DefaultTableModel jtable_modelo_nominaperodeduc;
    private javax.swing.table.DefaultTableModel jtable_modelo_detallenominafope;
    private javax.swing.table.DefaultTableModel jtable_modelo_detallenominanofope;
    private javax.swing.table.DefaultTableModel jtable_modelo_detallenominafope_int;
    private javax.swing.table.DefaultTableModel jtable_modelo_detallenominanofope_int;

    private javax.swing.table.DefaultTableModel jtable_modelo_historialresumen;
    private javax.swing.table.DefaultTableModel jtable_modelo_historialpuntualidad;

    private javax.swing.table.DefaultTableModel jtable_modelo_podhistorial;
        private javax.swing.table.DefaultTableModel jtable_modelo_podhistorial_det;

    private javax.swing.table.DefaultTableModel jtable_modelo_reportef;
    private javax.swing.table.DefaultTableModel jtable_modelo_reportenof;
    private javax.swing.table.DefaultTableModel jtable_modelo_patrones_areas;

    si_conectar x = new si_conectar();
    ResultSet rs = null;
     private java.util.Date fechahoy=new Date();
    DefaultTableCellRenderer alinearCentro, alinearderecha, alinearIzquierda;
    
    int fempleadoactual=0, fpreguntaactual=0,fpuestoactual=0,findicadoractual,opcioncatalogo=0,controlcomboasi=0,columnaanterior=1,keephis=0,forzardetalle=0,indexactual=0,i3=0,i1=0,indexok=0,datosmodificados=0,idrowfonof=0,conbo1=0,contrlpanel=0,yacarguei2=0;
    private SimpleDateFormat formateador = new SimpleDateFormat("dd-MM-yyyy");
    private SimpleDateFormat formateadoresta = new SimpleDateFormat("yyyy-MM-dd");
    String textobuscaemplea="",textohtml="";
    /** Creates new form supervision_rh_prenomina */
    public rh_empleados_prenomina() {
        this.iniciar_modelo_prenomina();
        this.iniciar_modelo_periodos();
        this.iniciar_modelo_detalleprenomina();
        this.iniciar_modelo_patrones();
        this.iniciar_modelo_detallenomina();
        this.iniciar_modelo_nomperodec();
        this.iniciar_modelo_nomperodecintf();
        this.iniciar_modelo_nomperodecintnof();
        this.iniciar_modelo_reportef1();
        this.iniciar_modelo_podhistorial();
        this.iniciar_modelo_podhistorial_det();
        this.iniciar_modelo_historialresumen();
        this.iniciar_modelo_historialpuntualidad();
        this.iniciar_modelo_patrones_areas();
        initComponents();

        this.carga_datos_periodos();

        jt_periodos.getColumnModel().getColumn(0).setPreferredWidth(10);//tem ent
        jt_periodos.getColumnModel().getColumn(1).setPreferredWidth(80);//familia
        jt_periodos.getColumnModel().getColumn(2).setPreferredWidth(60);//familia
        jt_periodos.getColumnModel().getColumn(3).setPreferredWidth(60);//familia
        jt_periodos.getColumnModel().getColumn(4).setPreferredWidth(10);//familia
        jt_periodos.getColumnModel().getColumn(5).setPreferredWidth(60);//familia

        jt_catprenominas.getColumnModel().getColumn(0).setPreferredWidth(70);//tem ent
        jt_catprenominas.getColumnModel().getColumn(1).setPreferredWidth(40);//familia
        jt_catprenominas.getColumnModel().getColumn(2).setPreferredWidth(50);//tem ent
        jt_catprenominas.getColumnModel().getColumn(3).setPreferredWidth(80);//familia
        jt_catprenominas.getColumnModel().getColumn(4).setPreferredWidth(80);//tem ent
     
        jt_catprenominas.getColumnModel().getColumn(5).setPreferredWidth(100);//familia

     
        jt_detalleprenomina3.getColumnModel().getColumn(0).setPreferredWidth(2);//familia
        jt_detalleprenomina3.getColumnModel().getColumn(1).setPreferredWidth(35);//familia
        jt_detalleprenomina3.getColumnModel().getColumn(2).setPreferredWidth(6);//familia
        jt_detalleprenomina3.getColumnModel().getColumn(3).setPreferredWidth(4);//familia
        jt_detalleprenomina3.getColumnModel().getColumn(4).setPreferredWidth(20);//familia
        jt_detalleprenomina3.getColumnModel().getColumn(5).setPreferredWidth(20);//familia
        jt_detalleprenomina3.getColumnModel().getColumn(6).setPreferredWidth(30);//familia
        jt_detalleprenomina3.getColumnModel().getColumn(7).setPreferredWidth(2);//familia
     
        jt_detalleprenomina4.getColumnModel().getColumn(0).setPreferredWidth(2);//familia
        jt_detalleprenomina4.getColumnModel().getColumn(1).setPreferredWidth(35);//familia
        jt_detalleprenomina4.getColumnModel().getColumn(2).setPreferredWidth(6);//familia
        jt_detalleprenomina4.getColumnModel().getColumn(3).setPreferredWidth(4);//familia
        jt_detalleprenomina4.getColumnModel().getColumn(4).setPreferredWidth(20);//familia
        jt_detalleprenomina4.getColumnModel().getColumn(5).setPreferredWidth(20);//familia
        jt_detalleprenomina4.getColumnModel().getColumn(6).setPreferredWidth(30);//familia
        jt_detalleprenomina4.getColumnModel().getColumn(7).setPreferredWidth(2);//familia

        jt_detalleprenominapodf.getColumnModel().getColumn(0).setPreferredWidth(5);//tem ent
        jt_detalleprenominapodf.getColumnModel().getColumn(1).setPreferredWidth(60);//tem ent
        jt_detalleprenominapodf.getColumnModel().getColumn(2).setPreferredWidth(25);//familia
        jt_detalleprenominapodf.getColumnModel().getColumn(3).setPreferredWidth(10);//familia
        jt_detalleprenominapodf.getColumnModel().getColumn(4).setPreferredWidth(35);//familia
        jt_detalleprenominapodf.getColumnModel().getColumn(5).setPreferredWidth(25);//familia
        jt_detalleprenominapodf.getColumnModel().getColumn(6).setPreferredWidth(10);//familia
        jt_detalleprenominapodf.getColumnModel().getColumn(7).setPreferredWidth(35);//familia
        jt_detalleprenominapodf.getColumnModel().getColumn(8).setPreferredWidth(30);//familia
        jt_detalleprenominapodf.getColumnModel().getColumn(9).setPreferredWidth(3);//familia
        jt_detalleprenominapodf.getColumnModel().getColumn(10).setPreferredWidth(3);//familia


        jt_detalleprenominapodf4.getColumnModel().getColumn(0).setPreferredWidth(5);//tem ent
        jt_detalleprenominapodf4.getColumnModel().getColumn(1).setPreferredWidth(120);//tem ent
        jt_detalleprenominapodf4.getColumnModel().getColumn(2).setPreferredWidth(30);//familia
        jt_detalleprenominapodf4.getColumnModel().getColumn(3).setPreferredWidth(30);//familia
        jt_detalleprenominapodf4.getColumnModel().getColumn(4).setPreferredWidth(30);//familia
        jt_detalleprenominapodf4.getColumnModel().getColumn(5).setPreferredWidth(30);//familia
        jt_detalleprenominapodf4.getColumnModel().getColumn(6).setPreferredWidth(30);//familia
        jt_detalleprenominapodf4.getColumnModel().getColumn(7).setPreferredWidth(30);//familia
        jt_detalleprenominapodf4.getColumnModel().getColumn(8).setPreferredWidth(30);//familia
        jt_detalleprenominapodf4.getColumnModel().getColumn(9).setPreferredWidth(5);//familia
        jt_detalleprenominapodf4.getColumnModel().getColumn(10).setPreferredWidth(5);//familia
        jt_detalleprenominapodf4.getColumnModel().getColumn(11).setPreferredWidth(120);//familia
        jt_detalleprenominapodf4.getColumnModel().getColumn(12).setPreferredWidth(120);//familia

        jt_catpatrones.getColumnModel().getColumn(0).setPreferredWidth(5);//tem ent
        jt_catpatrones.getColumnModel().getColumn(1).setPreferredWidth(120);//familia
        jt_catpatrones.getColumnModel().getColumn(2).setPreferredWidth(40);//familia
        jt_catpatrones.getColumnModel().getColumn(3).setPreferredWidth(30);//familia
        jt_catpatrones.getColumnModel().getColumn(4).setPreferredWidth(50);//familia
        jt_catpatrones.getColumnModel().getColumn(5).setPreferredWidth(30);//familia
        jt_catpatrones.getColumnModel().getColumn(6).setPreferredWidth(30);//familia
        jt_catpatrones.getColumnModel().getColumn(7).setPreferredWidth(30);//familia


       jt_resumenhistorial.getColumnModel().getColumn(0).setPreferredWidth(10);//fecha
        jt_resumenhistorial.getColumnModel().getColumn(1).setPreferredWidth(35);//status.

        jt_resumenhistorialpuntual.getColumnModel().getColumn(0).setPreferredWidth(10);//fecha
       jt_resumenhistorialpuntual.getColumnModel().getColumn(1).setPreferredWidth(35);//status.
       
        this.carga_datos_internoperoded();

        this.jbtn_impresionanterior.setVisible(false);

        this.loadcombo_esquema();
if((!si_variables.getLogin().equals("administrador"))  || (!si_variables.getLogin().equals("cpclaudia")))
                {
                    this.jButton2.setVisible(true);
                    this.jButton1.setVisible(true);
                    this.jbtn_nominafcam.setVisible(true);
                }
else
                {
                    this.jButton2.setVisible(false);
                    this.jButton1.setVisible(false);
                    this.jbtn_nominafcam.setVisible(false);
                }
        indexok=1;
         Calendar fechaini = Calendar.getInstance(); // obtiene la fecha actual
        fechaini.set(fechahoy.getYear()+1900,fechahoy.getMonth(), 1);
        this.jdc_fechainicialnomina.setDate(fechaini.getTime());
        this.jdc_fechafinalnomina.setDate(fechahoy);

        this.jdc_fechainicialincidencia.setDate(fechaini.getTime());
        this.jdc_fechafinalinsidencia.setDate(fechahoy);



        this.loadcombo_tipoperiodo();
        contrlpanel=1;
        this.loadcombo_areas();
    }

private void iniciar_modelo_prenomina()
    {
        jtable_modelo_prenomina=new javax.swing.table.DefaultTableModel();//Creo el modelo
        jtable_modelo_prenomina.addColumn("<html><b>F.Docto</b></html>");
        jtable_modelo_prenomina.addColumn("<html><b>Status</b></html>");
        jtable_modelo_prenomina.addColumn("<html><b>Dep.</b></html>");
        jtable_modelo_prenomina.addColumn("<html><b>Elaboro.</b></html>");
        jtable_modelo_prenomina.addColumn("<html><b>Descripcion</b></html>");
        jtable_modelo_prenomina.addColumn("<html><b>Observaciones</b></html>");
    }
private void iniciar_modelo_periodos()
    {
        jtable_modelo_periodo=new javax.swing.table.DefaultTableModel();//Creo el modelo
        jtable_modelo_periodo.addColumn("<html><b>Id</b></html>");
        jtable_modelo_periodo.addColumn("<html><b>Nombre</b></html>");
        jtable_modelo_periodo.addColumn("<html><b>fecha Ini</b></html>");
        jtable_modelo_periodo.addColumn("<html><b>fecha Fin</b></html>");
        jtable_modelo_periodo.addColumn("<html><b>Dias</b></html>");
        jtable_modelo_periodo.addColumn("<html><b>Insid</b></html>");
    }
private void iniciar_modelo_patrones()
    {
        jtable_modelo_patrones=new javax.swing.table.DefaultTableModel();//Creo el modelo
        jtable_modelo_patrones.addColumn("<html><b>Id</b></html>");
       jtable_modelo_patrones.addColumn("<html><b>Nombre</b></html>");
        jtable_modelo_patrones.addColumn("<html><b>Rfc</b></html>");
        jtable_modelo_patrones.addColumn("<html><b>Nrp</b></html>");
        jtable_modelo_patrones.addColumn("<html><b>Obs</b></html>");
        jtable_modelo_patrones.addColumn("<html><b>Fis</b></html>");
        jtable_modelo_patrones.addColumn("<html><b>No Fis</b></html>");
        jtable_modelo_patrones.addColumn("<html><b>Total</b></html>");
    }
private void iniciar_modelo_patrones_areas()
    {
        jtable_modelo_patrones_areas=new javax.swing.table.DefaultTableModel();//Creo el modelo
        jtable_modelo_patrones_areas.addColumn("<html><b>Id</b></html>");
        jtable_modelo_patrones_areas.addColumn("<html><b>Nombre</b></html>");
        jtable_modelo_patrones_areas.addColumn("<html><b>pagof</b></html>");
        jtable_modelo_patrones_areas.addColumn("<html><b>pagonof</b></html>");
        jtable_modelo_patrones_areas.addColumn("<html><b>Total</b></html>");
    }
private void iniciar_modelo_nomperodec()
    {
        jtable_modelo_nominaperodeduc=new javax.swing.table.DefaultTableModel();//Creo el modelo
        jtable_modelo_nominaperodeduc.addColumn("<html><b>Id</b></html>");
        jtable_modelo_nominaperodeduc.addColumn("<html><b>Descripcion</b></html>");
        jtable_modelo_nominaperodeduc.addColumn("<html><b>tipo</b></html>");
        jtable_modelo_nominaperodeduc.addColumn("<html><b>Valor</b></html>");
        jtable_modelo_nominaperodeduc.addColumn("<html><b>Obs</b></html>");
        jtable_modelo_nominaperodeduc.addColumn("<html><b>id Pre</b></html>");
        jtable_modelo_nominaperodeduc.addColumn("<html><b>t.n</b></html>");
        jtable_modelo_nominaperodeduc.addColumn("<html><b>S.U.</b></html>");
        jtable_modelo_nominaperodeduc.addColumn("<html><b>Calculo base D.T.</b></html>");
    }

private void iniciar_modelo_nomperodecintf()
    {
        jtable_modelo_detallenominafope_int=new javax.swing.table.DefaultTableModel();//Creo el modelo
        jtable_modelo_detallenominafope_int.addColumn("<html><b>Id</b></html>");
        jtable_modelo_detallenominafope_int.addColumn("<html><b>empleado</b></html>");
        jtable_modelo_detallenominafope_int.addColumn("<html><b>idpod</b></html>");
        jtable_modelo_detallenominafope_int.addColumn("<html><b>pod</b></html>");
        jtable_modelo_detallenominafope_int.addColumn("<html><b>tipopod</b></html>");
        jtable_modelo_detallenominafope_int.addColumn("<html><b>cantidad</b></html>");
        jtable_modelo_detallenominafope_int.addColumn("<html><b>sal_1</b></html>");
        jtable_modelo_detallenominafope_int.addColumn("<html><b>sal_2</b></html>");
        jtable_modelo_detallenominafope_int.addColumn("<html><b>sal_3</b></html>");
        jtable_modelo_detallenominafope_int.addColumn("<html><b>sal_4</b></html>");
        jtable_modelo_detallenominafope_int.addColumn("<html><b>sal_5</b></html>");
        jtable_modelo_detallenominafope_int.addColumn("<html><b>Fac</b></html>");
        jtable_modelo_detallenominafope_int.addColumn("<html><b>sal_u</b></html>");
        jtable_modelo_detallenominafope_int.addColumn("<html><b>Importe</b></html>");
        jtable_modelo_detallenominafope_int.addColumn("<html><b>bdt</b></html>");
    }
private void iniciar_modelo_nomperodecintnof()
    {
        jtable_modelo_detallenominanofope_int=new javax.swing.table.DefaultTableModel();//Creo el modelo
        jtable_modelo_detallenominanofope_int.addColumn("<html><b>Id</b></html>");
        jtable_modelo_detallenominanofope_int.addColumn("<html><b>empleado</b></html>");
        jtable_modelo_detallenominanofope_int.addColumn("<html><b>idpod</b></html>");
        jtable_modelo_detallenominanofope_int.addColumn("<html><b>pod</b></html>");
        jtable_modelo_detallenominanofope_int.addColumn("<html><b>tipopod</b></html>");
        jtable_modelo_detallenominanofope_int.addColumn("<html><b>cantidad</b></html>");
        jtable_modelo_detallenominanofope_int.addColumn("<html><b>sal_1</b></html>");
        jtable_modelo_detallenominanofope_int.addColumn("<html><b>sal_2</b></html>");
        jtable_modelo_detallenominanofope_int.addColumn("<html><b>sal_3</b></html>");
        jtable_modelo_detallenominanofope_int.addColumn("<html><b>sal_4</b></html>");
        jtable_modelo_detallenominanofope_int.addColumn("<html><b>sal_5</b></html>");
        jtable_modelo_detallenominanofope_int.addColumn("<html><b>Fac</b></html>");
        jtable_modelo_detallenominanofope_int.addColumn("<html><b>sal_u</b></html>");
        jtable_modelo_detallenominanofope_int.addColumn("<html><b>Importe</b></html>");
        jtable_modelo_detallenominanofope_int.addColumn("<html><b>bdt</b></html>");
    }


private void iniciar_modelo_podhistorial()
    {
        jtable_modelo_podhistorial=new javax.swing.table.DefaultTableModel();//Creo el modelo
        jtable_modelo_podhistorial.addColumn("<html><b>p</b></html>");
        jtable_modelo_podhistorial.addColumn("<html><b>empleado</b></html>");
        jtable_modelo_podhistorial.addColumn("<html><b>Importe</b></html>");

    }
private void iniciar_modelo_historialresumen()
    {
        jtable_modelo_historialresumen=new javax.swing.table.DefaultTableModel();//Creo el modelo
        jtable_modelo_historialresumen.addColumn("<html><b>Cant.</b></html>");
        jtable_modelo_historialresumen.addColumn("<html><b>Concepto</b></html>");

    }
private void iniciar_modelo_historialpuntualidad()
    {
        jtable_modelo_historialpuntualidad=new javax.swing.table.DefaultTableModel();//Creo el modelo
        jtable_modelo_historialpuntualidad.addColumn("<html><b>Cant.</b></html>");
       jtable_modelo_historialpuntualidad.addColumn("<html><b>Puntualidad</b></html>");

    }

     private void carga_datos_periodos()
     {
            while(jtable_modelo_periodo.getRowCount()>0)jtable_modelo_periodo.removeRow(0);
            try
            {
              rs = x.sieuno_executediversosv2("select * from x1_supervision_empleados_prenomina_periodos(4,'','','') as (id smallint,descrip text,obser text,fechai date,fechafin date,dias integer,fechainiinsi date,fechafininsi date);",si_variables.getconexiongral());
               while (rs.next())
                    {
                       jtable_modelo_periodo.addRow(new Object[]{rs.getString("id"),rs.getString("descrip"),this.fechaeuropea(rs.getString("fechai")),this.fechaeuropea(rs.getString("fechafin")),rs.getString("dias"),this.fechaeuropea(rs.getString("fechainiinsi"))+":"+this.fechaeuropea(rs.getString("fechafininsi"))});
                        this.jcmbox_idperiodoini.addItem(rs.getString("id")+":"+rs.getString("descrip"));
                        this.jcmbox_idperiodofin.addItem(rs.getString("id")+":"+rs.getString("descrip"));
                    }
             }
            catch(Exception e)
            {
                System.out.println(e.getMessage());
            }
    }

     private void carga_datos_patron()
     {
        while(jtable_modelo_patrones.getRowCount()>0)jtable_modelo_patrones.removeRow(0);
           try
            {
                rs = x.sieuno_executediversosv2("select * from x1_supervision_empleados_patron(2,'','','','') as (idraz smallint,nombre character varying(60),rfc character varying(15),regpat text,obs text);",si_variables.getconexiongral());
               while (rs.next())
                    {
                     jtable_modelo_patrones.addRow(new Object[]{rs.getString("idraz"),rs.getString("nombre"),rs.getString("rfc"),rs.getString("regpat"),rs.getString("obs"),"0","0","0"});
                    }
             }
            catch(Exception e)
            {
                System.out.println(e.getMessage());
            }
                     jtable_modelo_patrones.addRow(new Object[]{"","","","","<html><b><h3>Totales:</h3></b></html>","0","0","0"});
    }



private void carga_datos_prenominas(int opcion,String busca){
    while(jtable_modelo_prenomina.getRowCount()>0)jtable_modelo_prenomina.removeRow(0);
    String texto="select * from x1_supervision_empleados_prenomina_doctos_catalogo("+opcion+",'"+busca+"','','') as (id integer,titulo text,fechaini date,fechafin date,iddepto smallint,idperiodo smallint,fechainii date,fechafini date,observ text,idstatus smallint,idsuperviso integer,fechadocto date,hora time,statusdescrip text,depadescrip character varying(80),periododesc text,supnombre character varying(50),superapp character varying(50),superapm character varying(50));";
    System.out.println(texto);
            try
            {
                     rs = x.sieuno_executediversosv2(texto,si_variables.getconexiongral());
               while (rs.next())
                    {
                       jtable_modelo_prenomina.addRow(new Object[]{this.fechaeuropea(rs.getString("fechadocto"))+" "+rs.getString("hora").substring(0, 5),rs.getString("idstatus")+":"+rs.getString("statusdescrip"),rs.getString("iddepto")+":"+rs.getString("depadescrip"),rs.getString("idsuperviso")+":"+rs.getString("supnombre")+" "+rs.getString("superapp")+" "+rs.getString("superapm"),rs.getString("id")+":"+rs.getString("titulo"),rs.getString("observ")});
                    }
             }
            catch(Exception e)
            {
                System.out.println(e.getMessage());
            }
    }

private void iniciar_modelo_detalleprenomina()
    {

        jtable_modelo_detalleprenomina=new javax.swing.table.DefaultTableModel();//Creo el modelo
        jtable_modelo_detalleprenomina.addColumn("<html><b>Departamento</b></html>");
        jtable_modelo_detalleprenomina.addColumn("<html><b>id</b></html>");
        jtable_modelo_detalleprenomina.addColumn("<html><b>Nombre</b></html>");
        jtable_modelo_detalleprenomina.addColumn("<html><b>Pago</b></html>");
        try
            {
              rs = x.sieuno_executediversosv2("select * from x1_supervision_empleados_prenomina_percepodeduc() as (id smallint,descrip text,tipopod smallint,observacion text);",si_variables.getconexiongral());
               while (rs.next())
                    {
                      jtable_modelo_detalleprenomina.addColumn("<html><b>"+rs.getString("id")+":"+rs.getString("descrip")+"</b></html>");
                    }
             }
            catch(Exception e)
            {
                System.out.println(e.getMessage());
            }
        jtable_modelo_detalleprenomina.addColumn("<html><b>Observacion</b></html>");
    }

private void iniciar_modelo_podhistorial_det()
    {
        jtable_modelo_podhistorial_det=new javax.swing.table.DefaultTableModel();//Creo el modelo
        jtable_modelo_podhistorial_det.addColumn("<html><b>idPod/Patron</b></html>");
         try
            {
               rs = x.sieuno_executediversosv2("select * from x1_supervision_empleados_patron(2,'','','','') as (idraz smallint,nombre character varying(60),rfc character varying(15),regpat text,obs text);",si_variables.getconexiongral());
               while (rs.next())
                    {
                      jtable_modelo_podhistorial_det.addColumn("<html><b>"+rs.getString("idraz")+":"+rs.getString("nombre")+"</b></html>");
                    }
             }
            catch(Exception e)
            {
                System.out.println(e.getMessage());
            }
        jtable_modelo_podhistorial_det.addColumn("<html><b>Totales</b></html>");
    }
private void iniciar_modelo_reportef1()
    {
        jtable_modelo_reportef=new javax.swing.table.DefaultTableModel();//Creo el modelo
        jtable_modelo_reportef.addColumn("Nombre");
        jtable_modelo_reportef.addColumn("Curp/Rfc");
        jtable_modelo_reportef.addColumn("Duracion Jornada");
        jtable_modelo_reportef.addColumn("F.Ing.Trab.");
        jtable_modelo_reportef.addColumn("T. salario.");
        jtable_modelo_reportef.addColumn("Dias");
        jtable_modelo_reportef.addColumn("Sal. Nom");
        jtable_modelo_reportef.addColumn("Sueldo");
        jtable_modelo_reportef.addColumn("Prima Dom.");
        jtable_modelo_reportef.addColumn("Subtotal");
        jtable_modelo_reportef.addColumn("Subsidio al Emp.");
        jtable_modelo_reportef.addColumn("Total Percepcion");
        jtable_modelo_reportef.addColumn("ISR Sueldos");
        jtable_modelo_reportef.addColumn("I.M.S.S");
        jtable_modelo_reportef.addColumn("Infonavit");
        jtable_modelo_reportef.addColumn("Total Deduc.");
        jtable_modelo_reportef.addColumn("Neto a Pagar.");
        jtable_modelo_reportef.addColumn("Firmas.");
    }

private void iniciar_modelo_detallenomina()
    {

        jtable_modelo_detallenomina=new javax.swing.table.DefaultTableModel();//Creo el modelo
        jtable_modelo_detallenomina.addColumn("<html><b>id</b></html>");
        jtable_modelo_detallenomina.addColumn("<html><b>Empleado</b></html>");
        jtable_modelo_detallenomina.addColumn("Percep. F");
        jtable_modelo_detallenomina.addColumn("D. F");
        jtable_modelo_detallenomina.addColumn("<html><b>Imp. F</b></html>");
        jtable_modelo_detallenomina.addColumn("P. NO F");
        jtable_modelo_detallenomina.addColumn("D. NO F");
        jtable_modelo_detallenomina.addColumn("<html><b>Imp. No F</b></html>");
        jtable_modelo_detallenomina.addColumn("<html><b>Pago</b></html>");
        jtable_modelo_detallenomina.addColumn("PF");
        jtable_modelo_detallenomina.addColumn("PNF");
    

        jtable_modelo_detallenominafope=new javax.swing.table.DefaultTableModel();//Creo el modelo
        jtable_modelo_detallenominafope.addColumn("<html><b>id</b></html>");
        jtable_modelo_detallenominafope.addColumn("<html><b>descrip</b></html>");
        jtable_modelo_detallenominafope.addColumn("<html><b>pod</b></html>");
        jtable_modelo_detallenominafope.addColumn("<html><b>dt</b></html>");
        jtable_modelo_detallenominafope.addColumn("<html><b>Salario</b></html>");
        jtable_modelo_detallenominafope.addColumn("<html><b>fac</b></html>");
        jtable_modelo_detallenominafope.addColumn("<html><b>Subtotal</b></html>");
        jtable_modelo_detallenominafope.addColumn("<html><b>bdt</b></html>");

        jtable_modelo_detallenominanofope=new javax.swing.table.DefaultTableModel();//Creo el modelo
        jtable_modelo_detallenominanofope.addColumn("<html><b>id</b></html>");
        jtable_modelo_detallenominanofope.addColumn("<html><b>descrip</b></html>");
        jtable_modelo_detallenominanofope.addColumn("<html><b>pod</b></html>");
        jtable_modelo_detallenominanofope.addColumn("<html><b>dt</b></html>");
        jtable_modelo_detallenominanofope.addColumn("<html><b>Salario</b></html>");
        jtable_modelo_detallenominanofope.addColumn("<html><b>fac</b></html>");
        jtable_modelo_detallenominanofope.addColumn("<html><b>Subtotal</b></html>");
        jtable_modelo_detallenominanofope.addColumn("<html><b>bdt</b></html>");

        jtable_modelo_detallenominaf=new javax.swing.table.DefaultTableModel();//Creo el modelo
        jtable_modelo_detallenominaf.addColumn("<html><b>id</b></html>");
        jtable_modelo_detallenominaf.addColumn("<html><b>Empleado</b></html>");
        jtable_modelo_detallenominaf.addColumn("Percep. F");
        jtable_modelo_detallenominaf.addColumn("D. F");
        jtable_modelo_detallenominaf.addColumn("<html><b>Imp. F</b></html>");

        jtable_modelo_detallenominanof=new javax.swing.table.DefaultTableModel();//Creo el modelo
        jtable_modelo_detallenominanof.addColumn("<html><b>id</b></html>");
        jtable_modelo_detallenominanof.addColumn("<html><b>Empleado</b></html>");
        jtable_modelo_detallenominanof.addColumn("Percep. no F");
        jtable_modelo_detallenominanof.addColumn("D. no F");
        jtable_modelo_detallenominanof.addColumn("<html><b>Imp. no F</b></html>");

        jtable_modelo_detallenominap=new javax.swing.table.DefaultTableModel();//Creo el modelo
        jtable_modelo_detallenominap.addColumn("<html><b>id</b></html>");
        jtable_modelo_detallenominap.addColumn("<html><b>Empleado</b></html>");
        jtable_modelo_detallenominap.addColumn("Percep. F");
        jtable_modelo_detallenominap.addColumn("D. F");
        jtable_modelo_detallenominap.addColumn("<html><b>Imp. F</b></html>");
        jtable_modelo_detallenominap.addColumn("P. NO F");
        jtable_modelo_detallenominap.addColumn("D. NO F");
        jtable_modelo_detallenominap.addColumn("<html><b>Imp. No F</b></html>");
        jtable_modelo_detallenominap.addColumn("<html><b>Pago</b></html>");
        jtable_modelo_detallenominap.addColumn("PF");
        jtable_modelo_detallenominap.addColumn("PNF");
        jtable_modelo_detallenominap.addColumn("Area");
        jtable_modelo_detallenominap.addColumn("Puesto");

    }

public void centrar_datos()
    {
        alinearderecha = new DefaultTableCellRenderer();
        alinearderecha.setHorizontalAlignment(SwingConstants.RIGHT);

        jt_detalleprenominapodf.getColumnModel().getColumn(2).setCellRenderer(alinearderecha);
        jt_detalleprenominapodf.getColumnModel().getColumn(3).setCellRenderer(alinearderecha);
        jt_detalleprenominapodf.getColumnModel().getColumn(4).setCellRenderer(alinearderecha);
        jt_detalleprenominapodf.getColumnModel().getColumn(5).setCellRenderer(alinearderecha);
        jt_detalleprenominapodf.getColumnModel().getColumn(6).setCellRenderer(alinearderecha);
        jt_detalleprenominapodf.getColumnModel().getColumn(7).setCellRenderer(alinearderecha);
        jt_detalleprenominapodf.getColumnModel().getColumn(8).setCellRenderer(alinearderecha);

        jt_detalleprenominapodf1.getColumnModel().getColumn(2).setCellRenderer(alinearderecha);
        jt_detalleprenominapodf1.getColumnModel().getColumn(3).setCellRenderer(alinearderecha);
        jt_detalleprenominapodf1.getColumnModel().getColumn(4).setCellRenderer(alinearderecha);

        jt_detalleprenominapodf2.getColumnModel().getColumn(2).setCellRenderer(alinearderecha);
        jt_detalleprenominapodf2.getColumnModel().getColumn(3).setCellRenderer(alinearderecha);
        jt_detalleprenominapodf2.getColumnModel().getColumn(4).setCellRenderer(alinearderecha);

        jt_detalleprenominapodf1.getColumnModel().getColumn(2).setCellRenderer(alinearderecha);
        jt_detalleprenominapodf1.getColumnModel().getColumn(3).setCellRenderer(alinearderecha);
        jt_detalleprenominapodf1.getColumnModel().getColumn(4).setCellRenderer(alinearderecha);

         jt_detalleprenominapodf2.getColumnModel().getColumn(2).setCellRenderer(alinearderecha);
        jt_detalleprenominapodf2.getColumnModel().getColumn(3).setCellRenderer(alinearderecha);
        jt_detalleprenominapodf2.getColumnModel().getColumn(4).setCellRenderer(alinearderecha);
    }

public void centrar_datospat()
    {
        alinearderecha = new DefaultTableCellRenderer();
        alinearderecha.setHorizontalAlignment(SwingConstants.RIGHT);

        jt_catpatrones.getColumnModel().getColumn(5).setCellRenderer(alinearderecha);
        jt_catpatrones.getColumnModel().getColumn(6).setCellRenderer(alinearderecha);
        jt_catpatrones.getColumnModel().getColumn(7).setCellRenderer(alinearderecha);
    }

private void carga_datos_internoperoded()
   {
     String texto="select * from x1_supervision_empleados_p_nomina_percepodeduc(3,'1','','') as (id smallint,descrip text,tipopod smallint,valor numeric,obs text,idperodpreno smallint,idtipfonof smallint,salusa smallint,basedt boolean,pagoe boolean);";
     System.out.println(texto);
        try
            {
              rs = x.sieuno_executediversosv2(texto,si_variables.getconexiongral());
               while (rs.next())
                    {
                      //jtable_modelo_detallenomina.addColumn("<html><b>"+rs.getString("id")+":"+rs.getString("descrip")+":"+rs.getString("tipopod")+":"+rs.getString("valor")+":"+rs.getString("idperodpreno")+"</b></html>");
                      jtable_modelo_nominaperodeduc.addRow(new Object[]{rs.getString("id"),rs.getString("descrip"),rs.getString("tipopod"),rs.getString("valor"),rs.getString("obs"),rs.getString("idperodpreno"),rs.getString("idtipfonof"),rs.getString("salusa"),rs.getString("basedt")+":"+rs.getString("pagoe")});

                    }
             }
            catch(Exception e)
            {
                System.out.println(e.getMessage());
            }
}


private void carga_datos_empleado_detalle(int opcion,String textobusca)
   {
       //invoco al metodo que trae el recordset de datos
       //voy por el detalle del documento
    while(jtable_modelo_detalleprenomina.getRowCount()>0)jtable_modelo_detalleprenomina.removeRow(0);
    String texto="select * from x1_supervision_empleados_prenomina_doctos_catalogo("+opcion+",'"+textobusca+"','','') as (id integer,iddocto integer,idempleado integer,diasnomina integer,observ text,iddepto smallint,deptodes character varying(80),empleadonom text,empfechaa date);";
    System.out.println(texto);
       try
           {
            rs = x.sieuno_executediversosv2(texto,si_variables.getconexiongral());
            while (rs.next())
                {

                        this.crea_hojempleadosaprenomina(rs.getString("idempleado"), rs.getString("iddepto")+":"+rs.getString("deptodes"),rs.getString("empleadonom"),"","","",2,rs.getString("observ"),this.fechaeuropea(rs.getString("empfechaa")));
                }
           }
        catch(Exception e)
            {
            System.out.println(e.getMessage());
            }
    }
private void carga_datos_empleado_detalle_mov(int opcion,String textobusca)
   {
        int colu=0;
       try
           {
            rs = x.sieuno_executediversosv2("select * from x1_supervision_empleados_prenomina_doctos_catalogo("+opcion+",'"+textobusca+"','','') as (id integer,iddocto integer,idperoded smallint,cantidad numeric,ididempleado integer);",si_variables.getconexiongral());
            while (rs.next())
                {
                        colu=this.findcolumna_idperoded(rs.getString("idperoded"));
                        if(colu>0)
                        this.crea_hojempleadosaprenomina(rs.getString("ididempleado"),"0:0","nombre","","",rs.getString("cantidad"),colu,"","");
                }
           }
        catch(Exception e)
            {
            System.out.println(e.getMessage());
            }

    }


private void crea_hojempleadosaprenomina(String idempleado,String departamento,String nombre,String horaentrada,String horasalida,String cantidad,int columna,String observacion,String fechaingreso)
    {
        int numerofilas=this.jtable_modelo_detalleprenomina.getRowCount();
        String empleadoactual[]=null,iddepto[]=null;
        int numerocolumnas=jt_detalleprenomina.getColumnModel().getColumnCount(),ii=00,encontrado=0;
        Object[] fnewRow = new Object[numerocolumnas];

       //invoco al metodo que trae el recordset de datos
        for( ii=0;ii<numerofilas;ii++)
                {
                    empleadoactual=jtable_modelo_detalleprenomina.getValueAt(ii, 1).toString().split(":");
                     if (empleadoactual[0].equals(idempleado))
                        {
                            encontrado=1;
                            jtable_modelo_detalleprenomina.setValueAt(cantidad,ii ,columna);
                        }
                }
       if(encontrado==0)
            {
                 fnewRow[0]=departamento;
                 fnewRow[1]=idempleado;
                 fnewRow[2]=nombre+"("+fechaingreso+")";
                 for(ii=3;ii<numerocolumnas;ii++)
                            {

                                        fnewRow[ii]="0";
                             }
                 fnewRow[numerocolumnas-1]=observacion;
          jtable_modelo_detalleprenomina.addRow(fnewRow);
          iddepto=departamento.split(":");

            }
    }
private void carga_datos_podhistorial_patron(int opcion,String textobusca,String textobusca2,String textobusca3)
   {
       //invoco al metodo que trae el recordset de datos
       //voy por el detalle del documento
      while(jtable_modelo_podhistorial_det.getRowCount()>0)jtable_modelo_podhistorial_det.removeRow(0);
DecimalFormat myFormat = new DecimalFormat("############.##");

String texto="select * from x1_supervision_empleados_p_nomina_percepodeduc("+opcion+",'"+textobusca+"','"+textobusca2+"','') as (idpod smallint,importe numeric,descrip text,idtipon smallint,idpat smallint);";
 System.out.println(texto);
       int colu=0;
       try
           {
            rs = x.sieuno_executediversosv2(texto,si_variables.getconexiongral());
            while (rs.next())
                {
               
                        colu=this.findcolumna_idpatron(rs.getString("idpat"));
                        if(colu>0)
                        this.crea_hojpodpatrondet(rs.getString("idpod"),rs.getString("descrip"),myFormat.format(rs.getFloat("importe")),colu);
                        else
                          System.out.println("buscando a general"+rs.getFloat("importe"));
                }
           }
        catch(Exception e)
            {
            System.out.println(e.getMessage());
            }
 texto="select * from x1_supervision_empleados_p_nomina_percepodeduc(18,'"+textobusca+"','"+textobusca2+"','') as (idpod smallint,importe numeric,descrip text,idtipon smallint,idpat smallint);";
 System.out.println(texto);
   colu=0;
       try
           {
            rs = x.sieuno_executediversosv2(texto,si_variables.getconexiongral());
            while (rs.next())
                {
             
                        colu=this.findcolumna_idpatron(rs.getString("idpat"));
                        if(colu>0)
                        this. crea_hojpodpatrondet(rs.getString("idpod"),rs.getString("descrip"),myFormat.format(rs.getFloat("importe")),colu);
                
                }
           }
        catch(Exception e)
            {
            System.out.println(e.getMessage());
            }
   jtable_modelo_podhistorial_det.addRow(new Object[]{"Totales"});
    }
private void crea_hojpodpatrondet(String idpod,String nombre,String cantidad,int columna)
    {
        int numerofilas=this.jtable_modelo_podhistorial_det.getRowCount();
        String empleadoactual[]=null,iddepto[]=null,cantidadant="0";
        int numerocolumnas=jt_detallepodpatron.getColumnModel().getColumnCount(),ii=0,encontrado=0;
        Object[] fnewRow = new Object[numerocolumnas];
        DecimalFormat myFormat = new DecimalFormat("############.##");
       //invoco al metodo que trae el recordset de datos
        for( ii=0;ii<numerofilas;ii++)
                {
                    empleadoactual=jtable_modelo_podhistorial_det.getValueAt(ii, 0).toString().split(":");
                     if (empleadoactual[0].equals(idpod))
                        {
                            encontrado=1;
                            cantidadant=this.jtable_modelo_podhistorial_det.getValueAt(ii, columna).toString();
                            jtable_modelo_podhistorial_det.setValueAt(myFormat.format(Float.valueOf(cantidad)+Float.valueOf(cantidadant)),ii ,columna);
                        }
                }
       if(encontrado==0)
            {
        
                 fnewRow[0]=idpod+":"+nombre;
                 for(ii=1;ii<numerocolumnas;ii++)
                            {
                                if (ii==columna)
                                    fnewRow[ii]=cantidad;
                                else
                                        fnewRow[ii]="0";
                             }
                jtable_modelo_podhistorial_det.addRow(fnewRow);
           }
    }
  private void carga_datos_patron_pagos(String periodo)
     {
        DecimalFormat myFormat = new DecimalFormat("############.##");
        float importef=0,importenof=0,areaif=0,areainf=0;
        String texto="select * from x1_supervision_empleados_patron(4,'"+periodo+"','','','') as (id integer,idraz smallint,pagof numeric,pagonof numeric,pago numeric);";
        System.out.println(texto);
           try
            {
                rs = x.sieuno_executediversosv2(texto,si_variables.getconexiongral());
               while (rs.next())
                    {
                         this. crea_hoja_patronf(rs.getString("idraz"),myFormat.format(rs.getFloat("pagof")),myFormat.format(rs.getFloat("pagonof")),myFormat.format(rs.getFloat("pago")));
                    }
             }
            catch(Exception e)
            {
                System.out.println(e.getMessage());
            }

        texto="select * from x1_supervision_empleados_patron(5,'"+periodo+"','','','') as (id integer,idraz smallint,pagof numeric,pagonof numeric,pago numeric);";
        System.out.println(texto);
         try
            {
               rs = x.sieuno_executediversosv2(texto,si_variables.getconexiongral());
               while (rs.next())
                    {
                         this. crea_hoja_patronnof(rs.getString("idraz"),myFormat.format(rs.getFloat("pagof")),myFormat.format(rs.getFloat("pagonof")),myFormat.format(rs.getFloat("pago")));
                    }
             }
            catch(Exception e)
            {
                System.out.println(e.getMessage());
            }
         for(int i = 0 ;i < this.jtable_modelo_patrones.getRowCount()-1; i++)
                                {
                                    importef+=Float.valueOf(this.jtable_modelo_patrones.getValueAt(i, 5).toString());
                                    importenof+=Float.valueOf(this.jtable_modelo_patrones.getValueAt(i, 6).toString());
                                }
        jtable_modelo_patrones.setValueAt(myFormat.format(importef),this.jtable_modelo_patrones.getRowCount()-1 ,5);
        jtable_modelo_patrones.setValueAt(myFormat.format(importenof),this.jtable_modelo_patrones.getRowCount()-1 ,6);

         for(int i = 0 ;i < this.jtable_modelo_patrones.getRowCount(); i++)
                                {
                                    jtable_modelo_patrones.setValueAt(myFormat.format(Float.valueOf(this.jtable_modelo_patrones.getValueAt(i, 5).toString())+Float.valueOf(this.jtable_modelo_patrones.getValueAt(i, 6).toString())),i ,7);
                                }

        texto="select * from x1_supervision_empleados_patron(12,'"+periodo+"','','','') as (pagof numeric,pagonof numeric,pago numeric,idpe smallint,idarea smallint,area text);";
        System.out.println(texto);
         try
            {
               rs = x.sieuno_executediversosv2(texto,si_variables.getconexiongral());
               while (rs.next())
                    {
                        areaif+=rs.getFloat("pagof");
                        areainf+=rs.getFloat("pagonof");
                        jtable_modelo_patrones_areas.addRow(new Object[]{rs.getString("idarea"),rs.getString("area"),myFormat.format(rs.getFloat("pagof")),myFormat.format(rs.getFloat("pagonof")),myFormat.format(rs.getFloat("pago"))});
                    }
             }
        catch(Exception e)
            {
                System.out.println(e.getMessage());
            }
        jtable_modelo_patrones_areas.addRow(new Object[]{"0","Total:",myFormat.format(areaif),myFormat.format(areainf),myFormat.format(areaif+areainf)});
    }
private void crea_hoja_patronf(String idempleado,String pagof,String pagonof,String pago)
    {
        DecimalFormat myFormat = new DecimalFormat("############.##");
        int numerofilas=this.jtable_modelo_patrones.getRowCount();
        String empleadoactual=null,iddepto[]=null;
        int ii=0,encontrado=0;
        for( ii=0;ii<numerofilas;ii++)
                {
                    empleadoactual=jtable_modelo_patrones.getValueAt(ii, 0).toString();
                     if (empleadoactual.equals(idempleado))
                        {
                            encontrado=1;
                            jtable_modelo_patrones.setValueAt(myFormat.format(Float.valueOf(pago)),ii ,5);
                            //jtable_modelo_patrones.setValueAt(pagonof,ii ,6);
                            //jtable_modelo_patrones.setValueAt(pago,ii ,7);
                        }
                }

    }
private void crea_hoja_patronnof(String idempleado,String pagof,String pagonof,String pago)
    {
        DecimalFormat myFormat = new DecimalFormat("############.##");
        int numerofilas=this.jtable_modelo_patrones.getRowCount();
        String empleadoactual=null,iddepto[]=null;
        int ii=0,encontrado=0;
        for( ii=0;ii<numerofilas;ii++)
                {
                    empleadoactual=jtable_modelo_patrones.getValueAt(ii, 0).toString();
                     if (empleadoactual.equals(idempleado))
                        {
                            encontrado=1;
                            //jtable_modelo_patrones.setValueAt(pago,ii ,5);
                            jtable_modelo_patrones.setValueAt(myFormat.format(Float.valueOf(pago)),ii ,6);
                            //jtable_modelo_patrones.setValueAt(pago,ii ,7);
                        }
                }

    }

 private void carga_datos_patron_pagosdet(int opcion,String patron,String periodo)
     {

      while(jtable_modelo_detallenominaf.getRowCount()>0)jtable_modelo_detallenominaf.removeRow(0);
       while(jtable_modelo_detallenominanof.getRowCount()>0)jtable_modelo_detallenominanof.removeRow(0);
        DecimalFormat myFormat = new DecimalFormat("############.##");
        float importef=0,importenof=0;
           try
            {
                rs = x.sieuno_executediversosv2("select * from x1_supervision_empleados_patron(6,'"+patron+"','"+periodo+"','','') as (id integer,idfolio integer,idemp integer,percepf numeric, deducf numeric, id_tipopago smallint, observaciones text, percepnof numeric, deducnof numeric, pagof numeric, pagonof numeric, pago numeric,id_patronf smallint,  id_patronnof smallint, nombre text, fecha_alta date, fecha_alta_imss date, id_periodo smallint);",si_variables.getconexiongral());
               while (rs.next())
                    {
                        if(rs.getFloat("pagof")>0)
                            {
                                jtable_modelo_detallenominaf.addRow(new Object[]{rs.getString("idemp"),rs.getString("nombre"),myFormat.format(rs.getFloat("percepf")),myFormat.format(rs.getFloat("deducf")),myFormat.format(rs.getFloat("pagof"))});
                                importef+=rs.getFloat("pagof");
                            }
                    }
             }
            catch(Exception e)
            {
                System.out.println(e.getMessage());
            }

         try
            {
               rs = x.sieuno_executediversosv2("select * from x1_supervision_empleados_patron(7,'"+patron+"','"+periodo+"','','') as (id integer,idfolio integer,idemp integer,percepf numeric, deducf numeric, id_tipopago smallint, observaciones text, percepnof numeric, deducnof numeric, pagof numeric, pagonof numeric, pago numeric,id_patronf smallint,  id_patronnof smallint, nombre text, fecha_alta date, fecha_alta_imss date, id_periodo smallint);",si_variables.getconexiongral());
               while (rs.next())
                    {
                        if(rs.getFloat("pagonof")>0)
                            {
                                jtable_modelo_detallenominanof.addRow(new Object[]{rs.getString("idemp"),rs.getString("nombre"),myFormat.format(rs.getFloat("percepnof")),myFormat.format(rs.getFloat("deducnof")),myFormat.format(rs.getFloat("pagonof"))});
                                importenof+=rs.getFloat("pagonof");
                            }
                    }
             }
            catch(Exception e)
            {
                System.out.println(e.getMessage());
            }
            this.jtf_totalf2.setText(myFormat.format(importef));
            this.jtf_totalnofd2.setText(myFormat.format(importenof));
            this.jtf_totald2.setText(myFormat.format(importef+importenof));

    }

private int findcolumna_idperoded (String titulo)  {
  int columnas = jtable_modelo_detalleprenomina.getColumnCount(),columencontrado=0;
  String columtitulo[]=null;
      for(int j = 0 ;j < columnas ; j++)
                {
                    columtitulo= jtable_modelo_detalleprenomina.getColumnName(j).replace("<html><b>","").split(":");
                    if(columtitulo[0].equals(titulo))
                        {
                            columencontrado=j;
                        }
                }
    return columencontrado;
}
private int findcolumna_idpatron (String titulo)  {
  int columnas = jtable_modelo_podhistorial_det.getColumnCount(),columencontrado=0;
  String columtitulo[]=null;
      for(int j = 1 ;j < columnas ; j++)
                {
                    columtitulo= jtable_modelo_podhistorial_det.getColumnName(j).replace("<html><b>","").split(":");
                    if(columtitulo[0].equals(titulo))
                        {
                            columencontrado=j;
                        }
                }
    return columencontrado;
}
private void carga_datos_empleado_x_patron(int opcion,String textobusca)
   {
       //invoco al metodo que trae el recordset de datos
       //voy por el detalle del documento
    if(keephis==0)
        {
            while(jtable_modelo_detallenomina.getRowCount()>0)jtable_modelo_detallenomina.removeRow(0);
            while(jtable_modelo_detallenominafope_int.getRowCount()>0)jtable_modelo_detallenominafope_int.removeRow(0);
            while(jtable_modelo_detallenominanofope_int.getRowCount()>0)jtable_modelo_detallenominanofope_int.removeRow(0);
        }
       Object[] fnewRow = new Object[8];
       try
           {
            rs = x.sieuno_executediversosv2("select * from x1_supervision_empleados_catalogo("+opcion+",'"+textobusca+"','','','') as (id integer,nombre character varying(50),app character varying(50),apm character varying(50),id_depart smallint,fecha_alta date,sueldob1 numeric,sueldob2 numeric,idpat smallint,sueldob3 numeric,sueldob4 numeric,sueldob5 numeric,idpanof smallint,idesq smallint);",si_variables.getconexiongral());
            while (rs.next())
                {
                        this.crea_hojempleadosnomina(rs.getString("id"),rs.getString("nombre")+" "+rs.getString("app")+" "+rs.getString("apm")+":"+rs.getString("idesq"),rs.getString("sueldob1"),rs.getString("sueldob2"),rs.getString("sueldob3"),rs.getString("sueldob4"),2,"",rs.getString("fecha_alta"),rs.getString("sueldob5"),rs.getString("idpat"),rs.getString("idpanof"));
                }
           }
        catch(Exception e)
            {
            System.out.println(e.getMessage());
            }
    }

private void carga_datos_empleado_x_patrondetalle(int opcion,String textobusca)
   {
       //invoco al metodo que trae el recordset de datos
       //voy por el detalle del documento
    int ii=0,numerofilas=0,encontrado=0;

    String epleadoactual="",empleadoactual="",texto="select * from x1_supervision_empleados_p_nomina_percepodeduc("+opcion+",'"+textobusca+"','"+this.jtf_idperiodoa.getText()+"','') as (idreg integer,iddetalle integer,idempleado integer,percepf numeric,deducf numeric,idtipo smallint,obser text,percepnof numeric,deducnof numeric,pagof numeric,pagonof numeric,pago numeric,iddep smallint,idpatron smallint,idpatnof smallint,nombre text,fechaa date);";
    DecimalFormat myFormat = new DecimalFormat("############.##");
      Object[] fnewRow = new Object[11];
      System.out.println(texto);
       try
           {
            rs = x.sieuno_executediversosv2(texto,si_variables.getconexiongral());
            while (rs.next())
                {
                        encontrado=0;
                         numerofilas=this.jtable_modelo_detallenomina.getRowCount();
                         for( ii=0;ii<numerofilas;ii++)
                                {
                                    empleadoactual=jtable_modelo_detallenomina.getValueAt(ii, 0).toString();
                                    System.out.println("empleados en catalogo "+empleadoactual+ " empleado de detalle"+ rs.getString("idempleado").toString());
                                     if (empleadoactual.equals(rs.getString("idempleado").toString()))
                                            {
                                                encontrado=1;
                                                jtable_modelo_detallenomina.setValueAt(myFormat.format(rs.getFloat("percepf")),ii ,2);
                                                jtable_modelo_detallenomina.setValueAt(myFormat.format(rs.getFloat("deducf")),ii ,3);
                                                jtable_modelo_detallenomina.setValueAt(myFormat.format(rs.getFloat("pagof")),ii ,4);
                                                jtable_modelo_detallenomina.setValueAt(myFormat.format(rs.getFloat("percepnof")),ii ,5);
                                                jtable_modelo_detallenomina.setValueAt(myFormat.format(rs.getFloat("deducnof")),ii ,6);
                                                jtable_modelo_detallenomina.setValueAt(myFormat.format(rs.getFloat("pagonof")),ii ,7);
                                                jtable_modelo_detallenomina.setValueAt(myFormat.format(rs.getFloat("pago")),ii ,8);
                                                //jtable_modelo_detallenomina.setValueAt(rs.getString("idpatron").toString(),ii ,9);
                                                //jtable_modelo_detallenomina.setValueAt(rs.getString("idpatnof").toString(),ii ,8);
                                            }
                                }

                         if(encontrado==0)
                            {
                                 fnewRow[0]=rs.getString("idempleado");
                                 fnewRow[1]=rs.getString("nombre")+"("+rs.getString("fechaa")+")";
                                 //fnewRow[1]=rs.getString("idempleado");
                                 fnewRow[2]=myFormat.format(rs.getFloat("percepf"));
                                fnewRow[3]=myFormat.format(rs.getFloat("deducf"));
                                fnewRow[4]=myFormat.format(rs.getFloat("pagof"));
                                fnewRow[5]=myFormat.format(rs.getFloat("percepnof"));
                                fnewRow[6]=myFormat.format(rs.getFloat("deducnof"));
                                fnewRow[7]=myFormat.format(rs.getFloat("pagonof"));
                                fnewRow[8]=myFormat.format(rs.getFloat("pago"));
                                fnewRow[9]=rs.getString("idpatron");
                                fnewRow[10]=rs.getString("idpatnof");
                              jtable_modelo_detallenomina.addRow(fnewRow);
                            }

                }
           }
        catch(Exception e)
            {
            System.out.println(e.getMessage());
            }
    }
private void carga_datos_empleado_x_patrondetalleplazas(int opcion,String textobusca)
   {
       //invoco al metodo que trae el recordset de datos
       //voy por el detalle del documento
    while(jtable_modelo_detallenominap.getRowCount()>0)jtable_modelo_detallenominap.removeRow(0);
    int ii=0,numerofilas=0,encontrado=0;
    String epleadoactual="",empleadoactual="",texto="select * from x1_supervision_empleados_p_nomina_percepodeduc("+opcion+",'"+textobusca+"','"+this.jtf_idperiodoa.getText()+"','') as (idreg integer,iddetalle integer,idempleado integer,percepf numeric,deducf numeric,idtipo smallint,obser text,percepnof numeric,deducnof numeric,pagof numeric,pagonof numeric,pago numeric,iddep smallint,idpatron smallint,idpatnof smallint,nombre text,fechaa date,idplaza smallint,area text,puesto text);";
    DecimalFormat myFormat = new DecimalFormat("############.##");
      Object[] fnewRow = new Object[13];
      System.out.println(texto);
       try
           {
            rs = x.sieuno_executediversosv2(texto,si_variables.getconexiongral());
            while (rs.next())
                {
                        encontrado=0;
                         numerofilas=this.jtable_modelo_detallenominap.getRowCount();
                         this.jtf_plazaidplaza.setText(rs.getString("iddetalle").toString());
                         for( ii=0;ii<numerofilas;ii++)
                                {
                                    empleadoactual=jtable_modelo_detallenominap.getValueAt(ii, 0).toString();
                                    System.out.println("empleados en catalogo "+empleadoactual+ " empleado de detalle"+ rs.getString("idempleado").toString());
                                     if (empleadoactual.equals(rs.getString("idempleado").toString()))
                                            {
                                                encontrado=1;
                                                jtable_modelo_detallenominap.setValueAt(myFormat.format(rs.getFloat("percepf")),ii ,2);
                                                jtable_modelo_detallenominap.setValueAt(myFormat.format(rs.getFloat("deducf")),ii ,3);
                                                jtable_modelo_detallenominap.setValueAt(myFormat.format(rs.getFloat("pagof")),ii ,4);
                                                jtable_modelo_detallenominap.setValueAt(myFormat.format(rs.getFloat("percepnof")),ii ,5);
                                                jtable_modelo_detallenominap.setValueAt(myFormat.format(rs.getFloat("deducnof")),ii ,6);
                                                jtable_modelo_detallenominap.setValueAt(myFormat.format(rs.getFloat("pagonof")),ii ,7);
                                                jtable_modelo_detallenominap.setValueAt(myFormat.format(rs.getFloat("pago")),ii ,8);
                                                //jtable_modelo_detallenomina.setValueAt(rs.getString("idpatron").toString(),ii ,9);
                                                //jtable_modelo_detallenomina.setValueAt(rs.getString("idpatnof").toString(),ii ,8);
                                            }
                                }

                         if(encontrado==0)
                            {
                                 fnewRow[0]=rs.getString("idempleado");
                                 fnewRow[1]=rs.getString("nombre")+"("+rs.getString("fechaa")+")";
                                 //fnewRow[1]=rs.getString("idempleado");
                                 fnewRow[2]=myFormat.format(rs.getFloat("percepf"));
                                fnewRow[3]=myFormat.format(rs.getFloat("deducf"));
                                fnewRow[4]=myFormat.format(rs.getFloat("pagof"));
                                fnewRow[5]=myFormat.format(rs.getFloat("percepnof"));
                                fnewRow[6]=myFormat.format(rs.getFloat("deducnof"));
                                fnewRow[7]=myFormat.format(rs.getFloat("pagonof"));
                                fnewRow[8]=myFormat.format(rs.getFloat("pago"));
                                fnewRow[9]=rs.getString("idpatron");
                                fnewRow[10]=rs.getString("idpatnof");
                                fnewRow[11]=rs.getString("idplaza")+":"+rs.getString("area");
                                fnewRow[12]=rs.getString("puesto");
                              jtable_modelo_detallenominap.addRow(fnewRow);
                            }

                }
           }
        catch(Exception e)
            {
            System.out.println(e.getMessage());
            }
    }

private void carga_datos_empleado_x_patron_movdet(int opcion,String textobusca)
   {
       //invoco al metodo que trae el recordset de datos
       //voy por el detalle del documento
       Object[] fnewRow = new Object[8];
       DecimalFormat myFormat = new DecimalFormat("############.####");
       String texto="select * from x1_supervision_empleados_p_nomina_percepodeduc("+opcion+",'"+textobusca+"','"+this.jtf_idperiodoa.getText()+"','') as (idreg integer,iddetalle integer,idperoded smallint,cantidad numeric,idempleado integer,salario numeric,factor numeric,importe numeric,iddep smallint);";
       System.out.println(texto);
       try
           {
            rs = x.sieuno_executediversosv2(texto,si_variables.getconexiongral());
            while (rs.next())
                {
                        this.crea_ho_peryded_interno(myFormat.format(rs.getFloat("idempleado")),myFormat.format(rs.getFloat("idperoded")), myFormat.format(rs.getFloat("cantidad")), myFormat.format(rs.getFloat("factor")),myFormat.format(rs.getFloat("salario")), myFormat.format(rs.getFloat("importe")));
                }
           }
        catch(Exception e)
            {
            System.out.println(e.getMessage());
            }
    }

private void carga_datos_empleado_pod_fijos(int opcion,String textobusca)
   {
       //invoco al metodo que trae el recordset de datos
       //voy por el detalle del documento
       Object[] fnewRow = new Object[8];
       DecimalFormat myFormat = new DecimalFormat("############.####");
       String texto="select * from x1_supervision_empleados_peroded_catalogo("+opcion+",'"+textobusca+"','','') as (id integer,idpod smallint,cantidad numeric,factor numeric,salario numeric,idemp integer,descrip text,tipopod smallint,orden smallint);";
       System.out.println(texto);
       try
           {
            rs = x.sieuno_executediversosv2(texto,si_variables.getconexiongral());
            while (rs.next())
                {
                        this.crea_ho_peryded_fijos(myFormat.format(rs.getFloat("idemp")),myFormat.format(rs.getFloat("idpod")), myFormat.format(rs.getFloat("cantidad")), myFormat.format(rs.getFloat("factor")),myFormat.format(rs.getFloat("salario")));
                }
           }
        catch(Exception e)
            {
            System.out.println(e.getMessage());
            }
    }

private void crea_hojempleadosnomina(String idempleado,String nombre,String sal1,String sal2,String sal3,String sal4,int columna,String observacion,String fechaingreso,String sal5,String idp,String idpnof)
    {
        int numerofilas=this.jtable_modelo_detallenomina.getRowCount(),nf=0,iint=0;
        String empleadoactual[]=null,iddepto[]=null,salusa="0",idpersep="",idpercatalogo="";
        int numerocolumnas=this.jt_detalleprenominapodf.getColumnModel().getColumnCount(),ii=00,encontrado=0,salus=0;
        Object[] fnewRow = new Object[numerocolumnas];

       //invoco al metodo que trae el recordset de datos
        for( ii=0;ii<numerofilas;ii++)
                {
                    empleadoactual=jtable_modelo_detallenomina.getValueAt(ii, 0).toString().split(":");
                     if (empleadoactual[0].equals(idempleado))
                        {
                            encontrado=1;
                        }
                }
       if(encontrado==0)
            {

                 fnewRow[0]=idempleado;
                 fnewRow[1]=nombre+"("+fechaingreso+")";
                 for(ii=2;ii<numerocolumnas;ii++)
                            {

                                        fnewRow[ii]="0";
                             }
                 fnewRow[9]=idp;
                 fnewRow[10]=idpnof;
          jtable_modelo_detallenomina.addRow(fnewRow);
       }
      if((encontrado==0) || (forzardetalle==-1))
            {
          numerofilas=this.jtable_modelo_nominaperodeduc.getRowCount();
          for(ii = 0 ;ii < numerofilas ; ii++)
               {
                     salus=Integer.valueOf(jtable_modelo_nominaperodeduc.getValueAt(ii, 7).toString());
                     idpercatalogo=jtable_modelo_nominaperodeduc.getValueAt(ii, 0).toString();
                                              

                    if(jtable_modelo_nominaperodeduc.getValueAt(ii, 6).toString().equals("1"))
                        {

                              switch (salus)
                                                    {
                                                        case 1:
                                                           salusa=sal1;
                                                        break;
                                                        case 2:
                                                           salusa=sal2;
                                                        break;
                                                        case 3:
                                                            if(Float.valueOf(sal2)>0)
                                                            salusa=sal3;
                                                        break;
                                                        case 4:
                                                            salusa=sal4;
                                                        break;
                                                         case 5:
                                                            salusa=sal5;
                                                        break;
                                                    }

                                    encontrado=0;
                                    nf=this.jtable_modelo_detallenominafope_int.getRowCount();

                                    for( iint=0;iint<nf;iint++)
                                        {
                                            empleadoactual=jtable_modelo_detallenominafope_int.getValueAt(iint, 0).toString().split(":");
                                            idpersep=this.jtable_modelo_detallenominafope_int.getValueAt(iint, 2).toString();
                                            if ((empleadoactual[0].equals(idempleado))&& (idpersep.equals(idpercatalogo)))
                                                    {
                                                        encontrado=1;
                                                        jtable_modelo_detallenominafope_int.setValueAt(sal1,iint ,6);
                                                        jtable_modelo_detallenominafope_int.setValueAt(sal2,iint ,7);
                                                        jtable_modelo_detallenominafope_int.setValueAt(sal3,iint ,8);
                                                        jtable_modelo_detallenominafope_int.setValueAt(sal4,iint ,9);
                                                        jtable_modelo_detallenominafope_int.setValueAt(sal5,iint ,10);
                                                        jtable_modelo_detallenominafope_int.setValueAt(salusa,iint ,12);
                                                    }
                                        }
                                    if (encontrado==0)
                                    jtable_modelo_detallenominafope_int.addRow(new Object[]{idempleado,nombre,jtable_modelo_nominaperodeduc.getValueAt(ii, 0).toString(),jtable_modelo_nominaperodeduc.getValueAt(ii, 1).toString(),jtable_modelo_nominaperodeduc.getValueAt(ii, 2).toString(),"0",sal1,sal2,sal3,sal4,sal5,jtable_modelo_nominaperodeduc.getValueAt(ii, 3).toString(),salusa,"0",jtable_modelo_nominaperodeduc.getValueAt(ii, 8).toString()});
                        }

                    if(jtable_modelo_nominaperodeduc.getValueAt(ii, 6).toString().equals("2"))
                            {
                                  switch (salus)
                                                    {
                                                        case 1:
                                                           salusa=sal1;
                                                        break;
                                                        case 2:
                                                           salusa=sal2;
                                                        break;
                                                        case 3:
                                                         salusa=sal3;
                                                        break;
                                                        case 4:
                                                            salusa=sal4;
                                                        break;
                                                         case 5:
                                                            salusa=sal5;
                                                        break;
                                                    }

                                    encontrado=0;
                                    nf=this.jtable_modelo_detallenominanofope_int.getRowCount();
                                     for( iint=0;iint<nf;iint++)
                                        {
                                            empleadoactual=jtable_modelo_detallenominanofope_int.getValueAt(iint, 0).toString().split(":");
                                            idpersep=this.jtable_modelo_detallenominanofope_int.getValueAt(iint, 2).toString();
                                            if ((empleadoactual[0].equals(idempleado))&& (idpersep.equals(idpercatalogo)))
                                                    {
                                                        encontrado=1;
                                                        jtable_modelo_detallenominanofope_int.setValueAt(sal1,iint ,6);
                                                        jtable_modelo_detallenominanofope_int.setValueAt(sal2,iint ,7);
                                                        jtable_modelo_detallenominanofope_int.setValueAt(sal3,iint ,8);
                                                        jtable_modelo_detallenominanofope_int.setValueAt(sal4,iint ,9);
                                                        jtable_modelo_detallenominanofope_int.setValueAt(sal5,iint ,10);
                                                        jtable_modelo_detallenominanofope_int.setValueAt(salusa,iint ,12);
                                                    }
                                        }
                                 if (encontrado==0)
                                jtable_modelo_detallenominanofope_int.addRow(new Object[]{idempleado,nombre,jtable_modelo_nominaperodeduc.getValueAt(ii, 0).toString(),jtable_modelo_nominaperodeduc.getValueAt(ii, 1).toString(),jtable_modelo_nominaperodeduc.getValueAt(ii, 2).toString(),"0",sal1,sal2,sal3,sal4,sal5,jtable_modelo_nominaperodeduc.getValueAt(ii, 3).toString(),salusa,"0",jtable_modelo_nominaperodeduc.getValueAt(ii, 8).toString()});
                            }
                    }
                 }
          
            
    }

private void crea_hojempleadosnomina_up(String idempleado,String nombre,String sal1,String sal2,String sal3,String sal4,int columna,String observacion,String fechaingreso,String sal5,String idp,String idpnof)
    {
        int numerofilas=this.jtable_modelo_detallenomina.getRowCount(),nf=0,iint=0;
        String empleadoactual[]=null,iddepto[]=null,salusa="0",idpersep="",idpercatalogo="";
        int numerocolumnas=this.jt_detalleprenominapodf.getColumnModel().getColumnCount(),ii=00,encontrado=0,salus=0;
        Object[] fnewRow = new Object[numerocolumnas];

       //invoco al metodo que trae el recordset de datos
          numerofilas=this.jtable_modelo_nominaperodeduc.getRowCount();
          for(ii = 0 ;ii < numerofilas ; ii++)
               {
                     salus=Integer.valueOf(jtable_modelo_nominaperodeduc.getValueAt(ii, 7).toString());
                     idpercatalogo=jtable_modelo_nominaperodeduc.getValueAt(ii, 0).toString();


                    if(jtable_modelo_nominaperodeduc.getValueAt(ii, 6).toString().equals("1"))
                        {

                              switch (salus)
                                                    {
                                                        case 1:
                                                           salusa=sal1;
                                                        break;
                                                        case 2:
                                                           salusa=sal2;
                                                        break;
                                                        case 3:
                                                            if(Float.valueOf(sal2)>0)
                                                            salusa=sal3;
                                                        break;
                                                        case 4:
                                                            salusa=sal4;
                                                        break;
                                                         case 5:
                                                            salusa=sal5;
                                                        break;
                                                    }

                                    encontrado=0;
                                    nf=this.jtable_modelo_detallenominafope_int.getRowCount();

                                    for( iint=0;iint<nf;iint++)
                                        {
                                            empleadoactual=jtable_modelo_detallenominafope_int.getValueAt(iint, 0).toString().split(":");
                                            idpersep=this.jtable_modelo_detallenominafope_int.getValueAt(iint, 2).toString();
                                            if ((empleadoactual[0].equals(idempleado))&& (idpersep.equals(idpercatalogo)))
                                                    {
                                                        encontrado=1;
                                                        jtable_modelo_detallenominafope_int.setValueAt(sal1,iint ,6);
                                                        jtable_modelo_detallenominafope_int.setValueAt(sal2,iint ,7);
                                                        jtable_modelo_detallenominafope_int.setValueAt(sal3,iint ,8);
                                                        jtable_modelo_detallenominafope_int.setValueAt(sal4,iint ,9);
                                                        jtable_modelo_detallenominafope_int.setValueAt(sal5,iint ,10);
                                                        jtable_modelo_detallenominafope_int.setValueAt(salusa,iint ,12);
                                                    }
                                        }
                                    if (encontrado==0)
                                    jtable_modelo_detallenominafope_int.addRow(new Object[]{idempleado,nombre,jtable_modelo_nominaperodeduc.getValueAt(ii, 0).toString(),jtable_modelo_nominaperodeduc.getValueAt(ii, 1).toString(),jtable_modelo_nominaperodeduc.getValueAt(ii, 2).toString(),"0",sal1,sal2,sal3,sal4,sal5,jtable_modelo_nominaperodeduc.getValueAt(ii, 3).toString(),salusa,"0",jtable_modelo_nominaperodeduc.getValueAt(ii, 8).toString()});
                        }

                    if(jtable_modelo_nominaperodeduc.getValueAt(ii, 6).toString().equals("2"))
                            {
                                  switch (salus)
                                                    {
                                                        case 1:
                                                           salusa=sal1;
                                                        break;
                                                        case 2:
                                                           salusa=sal2;
                                                        break;
                                                        case 3:
                                                         salusa=sal3;
                                                        break;
                                                        case 4:
                                                            salusa=sal4;
                                                        break;
                                                         case 5:
                                                            salusa=sal5;
                                                        break;
                                                    }

                                    encontrado=0;
                                    nf=this.jtable_modelo_detallenominanofope_int.getRowCount();
                                     for( iint=0;iint<nf;iint++)
                                        {
                                            empleadoactual=jtable_modelo_detallenominanofope_int.getValueAt(iint, 0).toString().split(":");
                                            idpersep=this.jtable_modelo_detallenominanofope_int.getValueAt(iint, 2).toString();
                                            if ((empleadoactual[0].equals(idempleado))&& (idpersep.equals(idpercatalogo)))
                                                    {
                                                        encontrado=1;
                                                        jtable_modelo_detallenominanofope_int.setValueAt(sal1,iint ,6);
                                                        jtable_modelo_detallenominanofope_int.setValueAt(sal2,iint ,7);
                                                        jtable_modelo_detallenominanofope_int.setValueAt(sal3,iint ,8);
                                                        jtable_modelo_detallenominanofope_int.setValueAt(sal4,iint ,9);
                                                        jtable_modelo_detallenominanofope_int.setValueAt(sal5,iint ,10);
                                                        jtable_modelo_detallenominanofope_int.setValueAt(salusa,iint ,12);
                                                    }
                                        }
                                 if (encontrado==0)
                                jtable_modelo_detallenominanofope_int.addRow(new Object[]{idempleado,nombre,jtable_modelo_nominaperodeduc.getValueAt(ii, 0).toString(),jtable_modelo_nominaperodeduc.getValueAt(ii, 1).toString(),jtable_modelo_nominaperodeduc.getValueAt(ii, 2).toString(),"0",sal1,sal2,sal3,sal4,sal5,jtable_modelo_nominaperodeduc.getValueAt(ii, 3).toString(),salusa,"0",jtable_modelo_nominaperodeduc.getValueAt(ii, 8).toString()});
                            }
                    }



    }

private void crea_ho_peryded_interno(String idempleado,String idpercatalogo,String cant,String factor,String salario,String importe)
    {
        int numerofilas=this.jtable_modelo_detallenomina.getRowCount(),nf=0,iint=0;
        String empleadoactual[]=null,iddepto[]=null,salusa="0",idpersep="";
        int numerocolumnas=this.jt_detalleprenominapodf.getColumnModel().getColumnCount(),ii=00,encontrado=0,salus=0;

                                   nf=this.jtable_modelo_detallenominafope_int.getRowCount();
                                   for( iint=0;iint<nf;iint++)
                                        {
                                            empleadoactual=jtable_modelo_detallenominafope_int.getValueAt(iint, 0).toString().split(":");
                                            idpersep=this.jtable_modelo_detallenominafope_int.getValueAt(iint, 2).toString();
                                            if ((empleadoactual[0].equals(idempleado))&& (idpersep.equals(idpercatalogo)))
                                                    {
                                                        encontrado=1;
                                                        jtable_modelo_detallenominafope_int.setValueAt(cant,iint ,5);
                                                        if(Float.valueOf(factor)>0)
                                                            {
                                                                jtable_modelo_detallenominafope_int.setValueAt(factor,iint ,11);
                                                                if(Float.valueOf(salario)>0)
                                                                    {
                                                                        jtable_modelo_detallenominafope_int.setValueAt(salario,iint ,12);
                                                                        jtable_modelo_detallenominafope_int.setValueAt(importe,iint ,13);
                                                                    }
                                                            }
                                                    }
                                        }
                                    encontrado=0;
                                    nf=this.jtable_modelo_detallenominanofope_int.getRowCount();
                                     for( iint=0;iint<nf;iint++)
                                        {
                                            empleadoactual=jtable_modelo_detallenominanofope_int.getValueAt(iint, 0).toString().split(":");
                                            idpersep=this.jtable_modelo_detallenominanofope_int.getValueAt(iint, 2).toString();
                                            if ((empleadoactual[0].equals(idempleado))&& (idpersep.equals(idpercatalogo)))
                                                    {
                                                        encontrado=1;
                                                        jtable_modelo_detallenominanofope_int.setValueAt(cant,iint ,5);
                                                          if(Float.valueOf(factor)>0)
                                                            {
                                                                jtable_modelo_detallenominanofope_int.setValueAt(factor,iint ,11);
                                                                 if(Float.valueOf(salario)>0)
                                                                    {
                                                                        jtable_modelo_detallenominanofope_int.setValueAt(salario,iint ,12);
                                                                        jtable_modelo_detallenominanofope_int.setValueAt(importe,iint ,13);
                                                                    }
                                                            }
                                                    }
                                        }

}
private void crea_ho_peryded_fijos(String idempleado,String idpercatalogo,String cant,String factor,String salario)
    {
        int numerofilas=this.jtable_modelo_detallenomina.getRowCount(),nf=0,iint=0;
        String empleadoactual[]=null,iddepto[]=null,salusa="0",idpersep="",fijo[]=null;
        int numerocolumnas=this.jt_detalleprenominapodf.getColumnModel().getColumnCount(),ii=00,encontrado=0,salus=0;

                                   nf=this.jtable_modelo_detallenominafope_int.getRowCount();
                                   for( iint=0;iint<nf;iint++)
                                            {
                                            empleadoactual=jtable_modelo_detallenominafope_int.getValueAt(iint, 0).toString().split(":");
                                            idpersep=this.jtable_modelo_detallenominafope_int.getValueAt(iint, 2).toString();
                                            if ((empleadoactual[0].equals(idempleado))&& (idpersep.equals(idpercatalogo)))
                                                        {
                                                            encontrado=1;
                                                            if(Float.valueOf(cant)>0)
                                                                {
                                                                    jtable_modelo_detallenominafope_int.setValueAt(cant,iint ,5);
                                                                    jtable_modelo_detallenominafope_int.setValueAt(factor,iint ,11);
                                                                    jtable_modelo_detallenominafope_int.setValueAt(salario,iint ,12);
                                                                     jtable_modelo_detallenominafope_int.setValueAt("f"+":"+"f",iint ,14);
                                                                }
                                                            else
                                                                {
                                                                    fijo=this.jtable_modelo_detallenominafope_int.getValueAt(iint, 14).toString().split(":");
                                                                    jtable_modelo_detallenominafope_int.setValueAt("t"+":"+fijo[1],iint ,14);
                                                                    jtable_modelo_detallenominafope_int.setValueAt(factor,iint ,11);
                                                                    jtable_modelo_detallenominafope_int.setValueAt(salario,iint ,12);
                                                                }
                                                        }
                                           }
                                   
                                    encontrado=0;
                                    nf=this.jtable_modelo_detallenominanofope_int.getRowCount();
                                     for( iint=0;iint<nf;iint++)
                                        {
                                            empleadoactual=jtable_modelo_detallenominanofope_int.getValueAt(iint, 0).toString().split(":");
                                            idpersep=this.jtable_modelo_detallenominanofope_int.getValueAt(iint, 2).toString();
                                            if ((empleadoactual[0].equals(idempleado))&& (idpersep.equals(idpercatalogo)))
                                                    {
                                                            encontrado=1;
                                                            jtable_modelo_detallenominanofope_int.setValueAt(cant,iint ,5);
                                                            fijo=this.jtable_modelo_detallenominanofope_int.getValueAt(iint, 14).toString().split(":");
                                                            jtable_modelo_detallenominanofope_int.setValueAt("t"+":"+fijo[1],iint ,14);
                                                            jtable_modelo_detallenominanofope_int.setValueAt(factor,iint ,11);
                                                            jtable_modelo_detallenominanofope_int.setValueAt(salario,iint ,12);
                                                     }
                                        }

}

private void carga_datos_prenominapagos()
        {

    int numerofilas = this.jtable_modelo_detalleprenomina.getRowCount(),ii=0;
    String selectin="";
        for( ii=0;ii<numerofilas;ii++)
                {
                if (ii>0)
                    {
                        selectin+=".";
                    }
                selectin+=""+jtable_modelo_detalleprenomina.getValueAt(ii ,1)+"";
                }

    System.out.println(selectin);
            String texto="select * from x1sieuno_articulo_detalle(1,0,'','"+selectin+"') as (ida integer,min integer,max integer,exi double precision,idp integer,cod text,cndt integer,descor text,preve double precision,pre_re real,clavepro text)";
            texto="select * from x1_supervision_empleados_p_nomina_percepodeduc(15,'"+selectin+"','"+this.jtf_idperiodoa.getText()+"','') as (idreg integer,iddetalle integer,idempleado integer,percepf numeric,deducf numeric,idtipo smallint,obser text,percepnof numeric,deducnof numeric,pagof numeric,pagonof numeric,pago numeric,iddep smallint,idpatron smallint,idpatnof smallint,nombre text,fechaa date);";
            System.out.println(texto);
            String despartido[]=null,mi="",ma="";
            int columnatitulo=0;
            try
                {
               rs = x.sieuno_executediversosv2(texto,si_variables.getconexiongral());
                while (rs.next())
                    {

                            this.crea_hoja_prenominapago(rs.getString("idempleado"),rs.getString("pago"),3);

                    }
                }
            catch(Exception e)
                {
                    System.out.println(e.getMessage());
                }

        }

private void crea_hoja_prenominapago(String codigo,String pago,int columna)
    {
        DecimalFormat miformat = new DecimalFormat("###,###,###");
        int numerofilas=this.jtable_modelo_detalleprenomina.getRowCount(),ii=00,encontrado=0;
        String mesactual="";
        float abononumerico=0;
       //invoco al metodo que trae el recordset de datos
        abononumerico=Float.valueOf(pago);
        for( ii=0;ii<numerofilas;ii++)
                {
                    mesactual=jtable_modelo_detalleprenomina.getValueAt(ii, 1).toString();
                    // System.out.println("Agregando:"+mesactual+" "+mes);
                    if (mesactual.equals(codigo))
                        {
                              jtable_modelo_detalleprenomina.setValueAt(miformat.format(abononumerico),ii ,columna);
                        }
                }
    }



private void carga_datos_podhistorial(int opcion,String textobusca,String textobusca2,String textobusca3)
   {
       //invoco al metodo que trae el recordset de datos
       //voy por el detalle del documento
      while(jtable_modelo_podhistorial.getRowCount()>0)jtable_modelo_podhistorial.removeRow(0);
    int ii=0,numerofilas=0,encontrado=0;
    String epleadoactual="",empleadoactual="",texto="select * from x1_supervision_empleados_p_nomina_percepodeduc("+opcion+",'"+textobusca+"','"+textobusca2+"','"+textobusca3+"') as (idpod smallint,importe numeric,idemp integer,nombre text);";
    DecimalFormat myFormat = new DecimalFormat("###,###,###,###.##");
      Object[] fnewRow = new Object[3];
      System.out.println(texto);
       try
           {
            rs = x.sieuno_executediversosv2(texto,si_variables.getconexiongral());
            while (rs.next())
                {
                           
                              fnewRow[0]=rs.getString("idpod");
                              fnewRow[1]=rs.getString("idemp")+":"+rs.getString("nombre");
                               fnewRow[2]=myFormat.format(rs.getFloat("importe"));
                               jtable_modelo_podhistorial.addRow(fnewRow);

                }
           }
        catch(Exception e)
            {
            System.out.println(e.getMessage());
            }
    }


private String DiaSemana(String fe) {
         String dia = "";
       java.util.Date fecha=null;
         try
            {
             fecha = formateador.parse(fe);

           }
        catch (ParseException e)
            {
            //Error, la cadena de texto no se puede convertir en fecha.
            }
        Calendar cal= Calendar.getInstance();
        cal.setTime(fecha);
        //ojo para establecer o recetear cada parte de la fecha por separado
        //cal.set(Calendar.YEAR, fecha.getYear());
        //cal.set(Calendar.MONTH, fecha.getMonth());
        //cal.set(Calendar.DAY_OF_MONTH, fecha.getDay());
        int diaInt = cal.get(Calendar.DAY_OF_WEEK);
        switch (diaInt) {
            case 1:
                dia = "Domingo";
                break;
            case 2:
                dia = "Lunes";
                break;
            case 3:
                dia = "Martes";
                break;
            case 4:
                dia = "Miercoles";
                break;
            case 5:
                dia = "Jueves";
                break;
            case 6:
                dia = "Viernes";
                break;
            case 7:
                dia = "Sabado";
                break;

        }
        return dia;
    }


private String  fechaamericana(String fecha) {

         //resibe cadena de fecha en formato americano dd-MM-yyyy
        java.util.Date fechaestaeuropa=null;
       SimpleDateFormat formateadorestaamericano = new SimpleDateFormat("yyyy-MM-dd");
       String cadenafecha="";
        try
         {
          fechaestaeuropa = formateador.parse(fecha);
         }
        catch (ParseException e)
          {
             //Error, la cadena de texto no se puede convertir en fecha.
          }
       cadenafecha= formateadorestaamericano.format(fechaestaeuropa);
       return cadenafecha;

    }

    private String  fechaeuropea(Date fecha) {
       SimpleDateFormat formateadorestaeuropa = new SimpleDateFormat("dd-MM-yyyy");
       String cadenafecha="";

       cadenafecha= formateadorestaeuropa.format(fecha);
       return cadenafecha;

    }

    private String fechaamericana(Date fe) {
       SimpleDateFormat formateadorestaeuropa = new SimpleDateFormat("yyyy-MM-dd");
       String cadenafecha="";
       cadenafecha= formateadorestaeuropa.format(fe);
       return cadenafecha;

    }
    private String  fechaeuropea(String fecha) {

         //resibe cadena de fecha en formato americano yyyy-MM-dd
        java.util.Date fechaestaeuropa=null;
       SimpleDateFormat formateadorestaeuropa = new SimpleDateFormat("dd-MM-yyyy");
       String cadenafecha="";
        try
         {
          fechaestaeuropa = formateadoresta.parse(fecha);
         }
        catch (ParseException e)
          {
             //Error, la cadena de texto no se puede convertir en fecha.
          }
       cadenafecha= formateadorestaeuropa.format(fechaestaeuropa);
       return cadenafecha;

    }

  private int Imprimir_pago(String empleado,String nombre)
    {
        textohtml="";
       // textohtml+=this.jep_facturaexport.getText().toString().replace("<html>", "").replace("</html>", "").replace("<head>", "").replace("</head>", "").replace("<body>", "").replace("</body>", "")+"";
        System.out.println("primer html"+textohtml);
        textohtml+="<table border=1 cellspacing=0><tr><td colspan=3><img src=\"http://"+si_variables.getHost()+"/javaweb/imagenespuntoventa/michellelogomini.jpg\" width=\"80\" height=\"20\" border=\"0\" alt=\"Foto Articulo\"></img></td><td>I</td><td colspan=3><img src=\"http://"+si_variables.getHost()+"/javaweb/imagenespuntoventa/michellelogomini.jpg\" width=\"80\" height=\"20\" border=\"0\" alt=\"Foto Articulo\"></img></td></tr>";
        textohtml+="<tr><td colspan=3><font face=\"times new roman\" size=1>Empleado: "+nombre+"<br>Periodo:"+this.jtf_periodo.getText()+"</font></td><td>I</td><td colspan=3><font face=\"times new roman\" size=1>Empleado: "+nombre+"<br>Periodo:"+this.jtf_periodo.getText()+"</font></td></tr>";
        textohtml+="<tr><td><font face=\"times new roman\" size=2>Concepto</font></td><td><font face=\"times new roman\" size=2>Percepciones</font></td><td><font face=\"times new roman\" size=2>Deducciones</font></td><td>I</td><td><font face=\"times new roman\" size=2>Concepto</font></td><td><font face=\"times new roman\" size=2>Percepciones</font></td><td><font face=\"times new roman\" size=2>Deducciones</font></td></tr>";
          int numerofilasint=this.jtable_modelo_detallenominafope_int.getRowCount(),i=0;
          float importep=0,imported=0;
          String codidetalle[]=null,idclista="",idstat="",idpod="",texto="select * from x1_supervision_empleados_p_nomina_percepodeduc(11,'"+empleado+"','"+this.jtf_idperiodoa.getText()+"','1') as (idreg integer,iddetalle integer,idperoded smallint,cantidad numeric,idempleado integer,salario numeric,factor numeric,importe numeric,descripcion text,tipono smallint);";
          DecimalFormat myFormat = new DecimalFormat("###,###,###,###.##");
                           
  try
           {
            rs = x.sieuno_executediversosv2(texto,si_variables.getconexiongral());
            while (rs.next())
                {

                          if(rs.getFloat("importe")>0)
                                                        {
                                                            importep+=rs.getFloat("importe");
                                                            textohtml+="<tr><td><font face=\"times new roman\" size=1>"+rs.getString("descripcion")+"</font></td><td><font face=\"times new roman\" size=1>"+myFormat.format(rs.getFloat("importe"))+"</font></td><td><font face=\"times new roman\" size=1>"+""+"</font></td><td>I</td><td><font face=\"times new roman\" size=1>"+rs.getString("descripcion")+"</font></td><td><font face=\"times new roman\" size=1>"+myFormat.format(rs.getFloat("importe"))+"</font></td><td><font face=\"times new roman\" size=1>"+""+"</font></td></tr>";
                                                        }
                          if(rs.getFloat("importe")<0)
                                                        {
                                                            imported+=rs.getFloat("importe");
                                                            textohtml+="<tr><td><font face=\"times new roman\" size=1>"+rs.getString("descripcion")+"</font></td><td><font face=\"times new roman\" size=1>"+""+"</font></td><td><font face=\"times new roman\" size=1>"+rs.getFloat("importe")+"</font></td><td>I</td><td><font face=\"times new roman\" size=1>"+rs.getString("descripcion")+"</font></td><td><font face=\"times new roman\" size=1>"+""+"</font></td><td><font face=\"times new roman\" size=1>"+rs.getFloat("importe")+"</font></td></tr>";
                                                       }

                }
           }
        catch(Exception e)
            {
            System.out.println(e.getMessage());
            }
                                             
    
      textohtml+="<tr><td aling=right><font face=\"times new roman\" size=2>"+"Suma $"+"</font></td><td aling=right><font face=\"times new roman\" size=2>"+myFormat.format(importep)+"</font></td><td aling=right><font face=\"times new roman\" size=2>"+myFormat.format(imported)+"</font></td><td>I</td><td aling=right><font face=\"times new roman\" size=2>"+"Suma $"+"</font></td><td aling=right><font face=\"times new roman\" size=2>"+myFormat.format(importep)+"</font></td><td aling=right><font face=\"times new roman\" size=2>"+myFormat.format(imported)+"</font></td></tr>";
      textohtml+="<tr><td><font face=\"times new roman\" size=2>"+""+"</font></td><td><font face=\"times new roman\" size=2>"+"Total Neto $"+"</font></td><td aling=right><font face=\"times new roman\" size=2>"+myFormat.format(imported+importep)+"</font></td><td>I</td><td><font face=\"times new roman\" size=2>"+""+"</font></td><td><font face=\"times new roman\" size=2>"+"Total Neto $"+"</font></td><td><font face=\"times new roman\" size=2>"+myFormat.format(imported+importep)+"</font></td></tr>";
      textohtml+="</table>";
    System.out.println("ultimo html"+textohtml);
    // this.jep_facturaexport.setText("<html>"+textohtml+"</html>");
    return 1;
}
private int Imprimir_pagonof(String empleado,String nombre)
    {
        textohtml="";
        //textohtml+=this.jep_facturaexport1.getText().toString().replace("<html>", "").replace("</html>", "").replace("<head>", "").replace("</head>", "").replace("<body>", "").replace("</body>", "")+"";
        System.out.println("primer html"+textohtml);
        textohtml+="<table border=1 cellspacing=0><tr><td colspan=3><img src=\"http://"+si_variables.getHost()+"/javaweb/imagenespuntoventa/michellelogomini.jpg\" width=\"80\" height=\"20\" border=\"0\" alt=\"Foto Articulo\"></img></td></tr>";
        textohtml+="<tr><td colspan=3><font face=\"times new roman\" size=1>Empleado: "+nombre+"<br>Periodo:"+this.jtf_periodo.getText()+"</font></td></tr>";
        textohtml+="<tr><td><font face=\"times new roman\" size=2>Concepto</font></td><td><font face=\"times new roman\" size=2>Percepciones</font></td><td><font face=\"times new roman\" size=2>Deducciones</font></td></tr>";
          int numerofilasint=this.jtable_modelo_detallenominanofope_int.getRowCount(),i=0;
          float importep=0,imported=0;
          String codidetalle[]=null,idclista="",idstat="",idpod="",texto="select * from x1_supervision_empleados_p_nomina_percepodeduc(11,'"+empleado+"','"+this.jtf_idperiodoa.getText()+"','2') as (idreg integer,iddetalle integer,idperoded smallint,cantidad numeric,idempleado integer,salario numeric,factor numeric,importe numeric,descripcion text,tipono smallint);";
          DecimalFormat myFormat = new DecimalFormat("###,###,###,###.##");
       try
           {
            rs = x.sieuno_executediversosv2(texto,si_variables.getconexiongral());
                    while (rs.next())
                             {
                                             if(rs.getFloat("importe")>0)
                                                        {
                                                            importep+=rs.getFloat("importe");
                                                            textohtml+="<tr><td><font face=\"times new roman\" size=1>"+rs.getString("descripcion")+"</font></td><td><font face=\"times new roman\" size=1>"+myFormat.format(rs.getFloat("importe"))+"</font></td><td><font face=\"times new roman\" size=1>"+""+"</font></td></tr>";
                                                        }
                                               if(rs.getFloat("importe")<0)
                                                        {
                                                            imported+=rs.getFloat("importe");
                                                            textohtml+="<tr><td><font face=\"times new roman\" size=1>"+rs.getString("descripcion")+"</font></td><td><font face=\"times new roman\" size=1>"+""+"</font></td><td><font face=\"times new roman\" size=1>"+myFormat.format(rs.getFloat("importe"))+"</font></td></tr>";
                                                       }
                                 }
                   
           }
        catch(Exception e)
            {
            System.out.println(e.getMessage());
            }

      textohtml+="<tr><td aling=right><font face=\"times new roman\" size=2>"+"Suma $"+"</font></td><td aling=right><font face=\"times new roman\" size=2>"+myFormat.format(importep)+"</font></td><td aling=right><font face=\"times new roman\" size=2>"+myFormat.format(imported)+"</font></td></tr>";
      textohtml+="<tr><td><font face=\"times new roman\" size=2>"+""+"</font></td><td><font face=\"times new roman\" size=2>"+"Total Neto $"+"</font></td><td aling=right><font face=\"times new roman\" size=2>"+myFormat.format(imported+importep)+"</font></td></tr>";
      textohtml+="</table>";
    System.out.println("ultimo html"+textohtml);
    // this.jep_facturaexport1.setText("<html>"+textohtml+"</html>");
    return 1;
}
private void dioclick(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
         System.out.println("dio doble  click");
         if(datosmodificados==0)
            {
                if(JOptionPane.showConfirmDialog(null, "Desea Ver Este Periodo?")==0)
                    {
                        String fechainsi[]=null;
                        int fila = jt_periodos.getSelectedRow();
                        this.jtf_diast.setText(this.jtable_modelo_periodo.getValueAt(fila, 4).toString());
                        this.jtf_idperiodoa.setText(this.jtable_modelo_periodo.getValueAt(fila, 0).toString());
                        fechainsi=this.jtable_modelo_periodo.getValueAt(fila, 5).toString().split(":");
                        
                        this.jtf_periodofi.setText(fechainsi[0]);
                        this.jtf_periodoff.setText(fechainsi[1]);

                        this.jtf_periodo.setText(this.jtable_modelo_periodo.getValueAt(fila, 2).toString()+" A " +this.jtable_modelo_periodo.getValueAt(fila, 3).toString());
                        this.jtf_idperiodoa_des.setText(this.jtable_modelo_periodo.getValueAt(fila, 1).toString());
                        this.carga_datos_prenominas(3, this.jtable_modelo_periodo.getValueAt(fila, 0).toString());
                        this.carga_datos_patron();
                        this.carga_datos_patron_pagos(this.jtable_modelo_periodo.getValueAt(fila, 0).toString());
                        this.centrar_datospat();
                        this.carga_datos_empleado_x_patron(15, "");
                        this.carga_datos_empleado_pod_fijos(2,"");
                        this.carga_datos_empleado_x_patron_movdet(6,"");
                        this.carga_datos_empleado_x_patrondetalle(10,"");
                        this.calcular_totales();
                        this.centrar_datos();
                 }
         }
         else
         {
                JOptionPane.showMessageDialog(null,"<html><b><h2>Existen datos que no se han guardado, Verifique o Elija perder datos en el menu archivo</h2></b></html>", "Sistema Integral(Alta Nomina) : Error",1);
         }
    }
private void dioclickpre(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
         System.out.println("dio doble  click");
        int fila = jt_catprenominas.getSelectedRow();
        String idpre[]=this.jtable_modelo_prenomina.getValueAt(fila, 4).toString().split(":");
        this.carga_datos_empleado_detalle(1,idpre[0]);
        this.carga_datos_empleado_detalle_mov(2,idpre[0]);
        this.carga_datos_prenominapagos();
        this.jTabbedPane1.setSelectedIndex(0);
    }
private void dioclickpre_genpa(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
         System.out.println("dio doble  click");
        int fila = jt_detalleprenomina.getSelectedRow(),encontro=0,fil2=-1, i=0;
        String idpre=this.jtable_modelo_detalleprenomina.getValueAt(fila, 1).toString(),cadenaobtenida="";
          for(i=0;i<this.jtable_modelo_detallenomina.getRowCount();i++)
            {
                cadenaobtenida=jtable_modelo_detallenomina.getValueAt(i, 0).toString().replace("<html><BODY bgcolor=#CC0066>", "").replace("</BODY></html>","");
                jtable_modelo_detallenomina.setValueAt(cadenaobtenida, i,0);
            }
       for(i=0;i<this.jtable_modelo_detallenomina.getRowCount();i++)
            {
                cadenaobtenida=jtable_modelo_detallenomina.getValueAt(i, 0).toString().replace("<html><BODY bgcolor=#CC0066>", "").replace("</BODY></html>","");
                System.out.println(cadenaobtenida+" en pocicion "+i);
               if(cadenaobtenida.equals(idpre))
                    {
                        System.out.println(cadenaobtenida+" en pocicion "+i);
                        this.jt_detalleprenominapodf.changeSelection(i, 0, true, false);
                        jtable_modelo_detallenomina.setValueAt("<html><BODY bgcolor=#CC0066>"+cadenaobtenida+"</BODY></html>", i,0);
                     fil2=i;
                    }
            }
        this.jTabbedPane1.setSelectedIndex(1);
         if(fil2>-1)
            {
                this.carga_datos_motorpago(fil2);
            }
    }
private void dioclickpreedit(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
         System.out.println("dio doble  click");
           int fila = jt_catprenominas.getSelectedRow();
  if(JOptionPane.showConfirmDialog(null, "Desea Modificar Prenomina?")==0)
            {
                   String idpre[]=this.jtable_modelo_prenomina.getValueAt(fila, 4).toString().split(":");
                   rh_empleados_prenomina_agregar fsrhpa=new rh_empleados_prenomina_agregar(idpre[0],this.jtable_modelo_prenomina.getValueAt(fila, 2).toString(),this.jtf_idperiodoa.getText().toString()+":"+"Periodo");
                   fsrhpa.pack();
                   fsrhpa.setVisible(true);
            }
    }

private void dioclickprint(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
         System.out.println("dio doble  click");
           int fila =jt_detalleprenominapodf1.getSelectedRow();
           String idpre=this.jtable_modelo_detallenominaf.getValueAt(fila, 0).toString();
            this.Imprimir_pago(idpre,this.jtable_modelo_detallenominaf.getValueAt(fila, 1).toString());
  
    }
private void dioclickprintnof(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
         System.out.println("dio doble  click");
           int fila =jt_detalleprenominapodf2.getSelectedRow();
           String idpre=this.jtable_modelo_detallenominanof.getValueAt(fila, 0).toString();
            this.Imprimir_pagonof(idpre,this.jtable_modelo_detallenominanof.getValueAt(fila, 1).toString());
    }

private void dioclickpret(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
         System.out.println("dio doble  click");
         int fila = jt_detalleprenomina.getSelectedRow();
         String idpre=this.jtable_modelo_detalleprenomina.getValueAt(fila, 1).toString();

         this.jtf_nominadeanombre1.setText(jtable_modelo_detalleprenomina.getValueAt(fila, 1).toString());

        this.carga_datos_salario2(idpre);
         this.loadcombo_razsocpatron2();
         this.loadcombo_razsocpatron_clasif2();
          this.carga_datos_asistencia(11, idpre,this.fechaamericana(this.jtf_periodofi.getText()),this.fechaamericana(this.jtf_periodoff.getText()));

    }
private void dioclickdethis(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
         System.out.println("dio doble  click");
         int fila =jt_detalleprenomina3.getSelectedRow();
         String idpre=this.jtable_modelo_detallenominafope.getValueAt(fila, 0).toString();
         this.carga_datos_empleado_historialperce(12,this.jtf_idempf.getText(), idpre);
         idrowfonof=1;
         this.jtf_idselecf.setText(String.valueOf(fila));
    }
private void dioclickdethisnof(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
         System.out.println("dio doble  click");
         int fila =jt_detalleprenomina4.getSelectedRow();
         String idpre=this.jtable_modelo_detallenominanofope.getValueAt(fila, 0).toString();
         this.carga_datos_empleado_historialperce(12,this.jtf_idempf.getText(), idpre);
         idrowfonof=2;
         this.jtf_idselecnof.setText(String.valueOf(fila));
    }

private void dioclickpat(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
         System.out.println("dio doble  click");
          if(datosmodificados==0)
            {
            if(JOptionPane.showConfirmDialog(null, "Desea ver detalle de este patron?")==0)
                    {
                        int fila = jt_catpatrones.getSelectedRow();
                        String idpat=this.jtable_modelo_patrones.getValueAt(fila, 0).toString();
                        this.jtf_rzpatron.setText(this.jtable_modelo_patrones.getValueAt(fila, 1).toString());
                        this.jtf_rzdescripcion.setText(this.jtable_modelo_patrones.getValueAt(fila, 3).toString());
                        this.jtf_rzrazon.setText(this.jtable_modelo_patrones.getValueAt(fila, 2).toString());
                        this.jtf_rzpatrondir.setText(this.jtable_modelo_patrones.getValueAt(fila, 4).toString());
                        this.jtf_idpatrona.setText(idpat);
                        this.jtf_idpatrona.setText(idpat);
                   
                        this.carga_datos_patron_pagosdet(7,idpat, this.jtf_idperiodoa.getText());
                        this.centrar_datos();
                        this.jTabbedPane1.setSelectedIndex(3);

                    }
               }
         else
         {
                JOptionPane.showMessageDialog(null,"<html><b><h2>Existen datos que no se han guardado, Verifique o Elija perder datos en el menu archivo</h2></b></html>", "Sistema Integral(Alta Nomina) : Error",1);
         }
    }
private void dioclickdetfope(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
        this.carga_datos_motorpago(jt_detalleprenominapodf.getSelectedRow());
    }

private void dioclickpoddet(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
         System.out.println("dio doble  click");
        int fila = jt_detallepodpatron.getSelectedRow();
        String idpre[]=this.jtable_modelo_podhistorial_det.getValueAt(fila, 0).toString().split(":");
        this.carga_datos_podhistorial(19,this.jtf_idperini.getText(),this.jtf_idperfin.getText(),idpre[0]);
    }
private void dioclickpodfactor(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
         System.out.println("dio doble  click");
        int fila = jt_nomina_peryded.getSelectedRow();
        this.jtf_idpodesquema.setText(this.jtable_modelo_nominaperodeduc.getValueAt(fila, 0).toString());
        this.jtf_idpodesqdesc.setText(this.jtable_modelo_nominaperodeduc.getValueAt(fila, 1).toString());
        this.jtf_idpodesquemafac.setText(this.jtable_modelo_nominaperodeduc.getValueAt(fila, 3).toString());
        this.jtf_idpodesquemafac.requestFocus();
    }
private void dioclickperpla(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
         System.out.println("dio doble  click");
        int fila = jt_detalleprenominapodf4.getSelectedRow();
        this.jtf_plazaidemp.setText(this.jtable_modelo_detallenominap.getValueAt(fila, 0).toString());
        this.jtf_plazaidemp1.setText(this.jtable_modelo_detallenominap.getValueAt(fila, 1).toString());

        String idpla[]=this.jtable_modelo_detallenominap.getValueAt(fila, 11).toString().split(":");


    }
private void carga_datos_motorpago(int fila)
    {
           DecimalFormat myFormat = new DecimalFormat("############.#####");
        DecimalFormat myFormat2 = new DecimalFormat("############.##");
        int totalfilasreporte=this.jtable_modelo_detallenominafope_int.getRowCount(),i=0,ii=0,exisdias=0;
        int pod=0,salus=0,encontrado=0;
        float importep=0,imported=0;
        String codigo[] = jtable_modelo_detallenomina.getValueAt(fila, 0).toString().replace("<html><BODY bgcolor=#CC0066>", "").replace("</BODY></html>","").split(":"),codigoint="",yep="";

        while(jtable_modelo_detallenominafope.getRowCount()>0)jtable_modelo_detallenominafope.removeRow(0);
        while(jtable_modelo_detallenominanofope.getRowCount()>0)jtable_modelo_detallenominanofope.removeRow(0);

        this.jtf_idempf.setText(codigo[0]);
        this.jtf_idpatronfac.setText(jtable_modelo_detallenomina.getValueAt(fila, 9).toString());
        this.jtf_idpatronnofact.setText(jtable_modelo_detallenomina.getValueAt(fila, 10).toString());

         this.carga_datos_salario(codigo[0]);
         this.loadcombo_razsocpatron();
         this.loadcombo_razsocpatron_clasif();
         this.jtf_nominadeanombre.setText(jtable_modelo_detallenomina.getValueAt(fila, 1).toString().replace("<html><BODY bgcolor=#CC0066>", "").replace("</BODY></html>",""));
         for( ii=0;ii<totalfilasreporte;ii++)
                            {
                                System.out.println("ya hay prenomina"+jtable_modelo_detallenominafope_int.getValueAt(ii, 2).toString());
                                codigoint=jtable_modelo_detallenominafope_int.getValueAt(ii, 0).toString();
                                if(codigo[0].equals(codigoint))
                                    {
                                       encontrado=1;
                                       yep=jtable_modelo_detallenominafope_int.getValueAt(ii, 2).toString();
                                       this.jtf_salariof.setText(this.jtable_modelo_detallenominafope_int.getValueAt(ii, 6).toString());
                                        if((yep.equals("1")) && (Float.valueOf(this.jtable_modelo_detallenominafope_int.getValueAt(ii, 5).toString())>0) && (Float.valueOf(this.jtable_modelo_detallenominafope_int.getValueAt(ii, 13).toString())==0))
                                            {
                                                this.jtf_diast.setText(this.jtable_modelo_detallenominafope_int.getValueAt(ii, 5).toString());
                                                exisdias=1;
                                                System.out.println("ya hay prenomina");
                                            }
                                        pod=Integer.valueOf(this.jtable_modelo_detallenominafope_int.getValueAt(ii, 4).toString());
                                        if(pod>0)
                                            importep+=Float.valueOf(this.jtable_modelo_detallenominafope_int.getValueAt(ii, 13).toString());
                                        else
                                            imported+=Float.valueOf(this.jtable_modelo_detallenominafope_int.getValueAt(ii, 13).toString());
                                        this.jtable_modelo_detallenominafope.addRow(new Object[]{this.jtable_modelo_detallenominafope_int.getValueAt(ii, 2).toString(),this.jtable_modelo_detallenominafope_int.getValueAt(ii, 3).toString(),this.jtable_modelo_detallenominafope_int.getValueAt(ii, 4).toString(),this.jtable_modelo_detallenominafope_int.getValueAt(ii, 5).toString(),this.jtable_modelo_detallenominafope_int.getValueAt(ii, 12).toString(),this.jtable_modelo_detallenominafope_int.getValueAt(ii, 11).toString(),this.jtable_modelo_detallenominafope_int.getValueAt(ii, 13).toString(),this.jtable_modelo_detallenominafope_int.getValueAt(ii, 14).toString()});
                                    }
                            }
         this.jtf_totalperf.setText(myFormat.format(importep));
         this.jtf_totaldecf.setText(myFormat.format(imported));
         this.jtf_salarionof.setText(myFormat2.format(Float.valueOf(this.jtf_diast.getText().toString())*Float.valueOf(this.jtf_salariof.getText().toString())));
            //rollo para no fiscal

      totalfilasreporte=this.jtable_modelo_detallenominanofope_int.getRowCount();


         for( ii=0;ii<totalfilasreporte;ii++)
                            {
                             codigoint=jtable_modelo_detallenominanofope_int.getValueAt(ii, 0).toString();

                                if(codigo[0].equals(codigoint))
                                    {
                                        encontrado=1;
                                        pod=Integer.valueOf(this.jtable_modelo_detallenominanofope_int.getValueAt(ii, 4).toString());
                                        if(pod>0)
                                            importep+=Float.valueOf(this.jtable_modelo_detallenominanofope_int.getValueAt(ii, 13).toString());
                                        else
                                            imported+=Float.valueOf(this.jtable_modelo_detallenominanofope_int.getValueAt(ii, 13).toString());

                                        this.jtable_modelo_detallenominanofope.addRow(new Object[]{this.jtable_modelo_detallenominanofope_int.getValueAt(ii, 2).toString(),this.jtable_modelo_detallenominanofope_int.getValueAt(ii, 3).toString(),this.jtable_modelo_detallenominanofope_int.getValueAt(ii, 4).toString(),this.jtable_modelo_detallenominanofope_int.getValueAt(ii, 5).toString(),this.jtable_modelo_detallenominanofope_int.getValueAt(ii, 12).toString(),this.jtable_modelo_detallenominanofope_int.getValueAt(ii, 11).toString(),this.jtable_modelo_detallenominanofope_int.getValueAt(ii, 13).toString(),this.jtable_modelo_detallenominanofope_int.getValueAt(ii, 14).toString()});
                                    }
                            }

      if(encontrado==0)
            {
                     keephis=1;//variable para mantener el historial
                     forzardetalle=-1;
                     this.carga_datos_empleado_x_patron(8, codigo[0]);
                     this.carga_datos_empleado_x_patron_movdet(8,codigo[0]);
                      this.carga_datos_empleado_x_patrondetalle(10,codigo[0]);

                     keephis=0;//variable para mantener el historial
                     forzardetalle=0;
            }

       if(exisdias==1)
             {
                this.calcula_pago();
             }
       else
            {
                this.calcular_opepodf(1);
                this.calcular_opepodf(2);
            }
}
private void carga_datos_salario(String codigo)
    {
       //invoco al metodo que trae el recordset de datos
   java.util.Date fechaestaeuropa=null;
        DecimalFormat miformat = new DecimalFormat("############.#####");
        this.jcmbx_idrazonsocial.removeAllItems();
        this.jcmbx_idrazonsocialnof.removeAllItems();
     String texto="select * from x1_supervision_empleados_catalogo(5,'"+codigo+"','','','') as (id integer,rfc character varying(16),curp character varying(20),imss character varying(20),sueldo1 numeric,sueldo2 numeric,idpat smallint,sueldo3 numeric,sueldo4 numeric,sueldo5 numeric,idpat2 smallint,nombrepa character varying(60),nombrepa2 character varying(60),fechaalta date,fechaimss date,idcla smallint,clasifdes text);";
     System.out.println(texto);
        try
         {
                   rs = x.sieuno_executediversosv2(texto,si_variables.getconexiongral());
            while (rs.next())
                {

                this.jtf_empleadorfc.setText(rs.getString("rfc"));
                this.jtf_empleadocurp.setText(rs.getString("curp"));
                this.jtf_empleadoimss.setText(rs.getString("imss"));

                   this.jtf_sueldobase1.setText(miformat.format(rs.getFloat("sueldo1")));
                   this.jtf_sueldobase2.setText(miformat.format(rs.getFloat("sueldo2")));
                   this.jtf_sueldobase3.setText(miformat.format(rs.getFloat("sueldo3")));
                   this.jtf_sueldobase4.setText(miformat.format(rs.getFloat("sueldo4")));
                   this.jtf_sueldobase5.setText(miformat.format(rs.getFloat("sueldo5")));

                   this.jcmbx_idrazonsocial.addItem(rs.getString("idpat")+":"+rs.getString("nombrepa"));
                   this.jcmbx_idrazonsocialnof.addItem(rs.getString("idpat2")+":"+rs.getString("nombrepa2"));
                   this.jcmbx_idrazonclasif.addItem(rs.getString("idcla")+":"+rs.getString("clasifdes"));
       if (rs.getString("fechaalta")!= null)
                        {
                            try
                                {
                                    fechaestaeuropa = formateador.parse(this.fechaeuropea(rs.getString("fechaalta")));
                                    this.jdc_fechaingreso2.setDate(fechaestaeuropa);
                                }
                            catch (ParseException e)
                                {
                                //Error, la cadena de texto no se puede convertir en fecha.
                                }
                        }
                        if (rs.getString("fechaimss")!= null)
                        {
                            try
                                {
                                    fechaestaeuropa = formateador.parse(this.fechaeuropea(rs.getString("fechaimss")));
                                    this.jdc_fechaingresoimss1.setDate(fechaestaeuropa);
                                }
                            catch (ParseException e)
                                {
                                //Error, la cadena de texto no se puede convertir en fecha.
                                }
                        }

                }

        }
        catch(Exception e)
        {
            System.out.println(e.getMessage());
        }

      }


private void carga_datos_salario2(String codigo)
    {
        java.util.Date fechaestaeuropa=null;
       //invoco al metodo que trae el recordset de datos
   DecimalFormat miformat = new DecimalFormat("############.#####");
     this.jcmbx_idrazonsocial1.removeAllItems();
     this.jcmbx_idrazonsocialnof1.removeAllItems();
     String texto="select * from x1_supervision_empleados_catalogo(5,'"+codigo+"','','','') as (id integer,rfc character varying(16),curp character varying(20),imss character varying(20),sueldo1 numeric,sueldo2 numeric,idpat smallint,sueldo3 numeric,sueldo4 numeric,sueldo5 numeric,idpat2 smallint,nombrepa character varying(60),nombrepa2 character varying(60),fechaalta date,fechaimss date,idcla smallint,clasifdes text);";
     System.out.println(texto);
        try
         {
             rs = x.sieuno_executediversosv2(texto,si_variables.getconexiongral());
            while (rs.next())
                {

                this.jtf_empleadorfc1.setText(rs.getString("rfc")+"");
                this.jtf_empleadocurp1.setText(rs.getString("curp")+"");
                this.jtf_empleadoimss1.setText(rs.getString("imss")+"");

                   this.jtf_sueldobase6.setText(miformat.format(rs.getFloat("sueldo1")));
                   this.jtf_sueldobase7.setText(miformat.format(rs.getFloat("sueldo2")));
                   this.jtf_sueldobase8.setText(miformat.format(rs.getFloat("sueldo3")));
                   this.jtf_sueldobase9.setText(miformat.format(rs.getFloat("sueldo4")));
                   this.jtf_sueldobase10.setText(miformat.format(rs.getFloat("sueldo5")));

                   this.jcmbx_idrazonsocial1.addItem(rs.getString("idpat")+":"+rs.getString("nombrepa"));
                   this.jcmbx_idrazonsocialnof1.addItem(rs.getString("idpat2")+":"+rs.getString("nombrepa2"));
                   this.jcmbx_idrazonclasif1.addItem(rs.getString("idcla")+":"+rs.getString("clasifdes"));

                         if (rs.getString("fechaalta")!= null)
                        {
                            try
                                {
                                    fechaestaeuropa = formateador.parse(this.fechaeuropea(rs.getString("fechaalta")));
                                    this.jdc_fechaingreso1.setDate(fechaestaeuropa);
                                }
                            catch (ParseException e)
                                {
                                //Error, la cadena de texto no se puede convertir en fecha.
                                }
                        }
                        if (rs.getString("fechaimss")!= null)
                        {
                            try
                                {
                                    fechaestaeuropa = formateador.parse(this.fechaeuropea(rs.getString("fechaimss")));
                                    this.jdc_fechaingresoimss.setDate(fechaestaeuropa);
                                }
                            catch (ParseException e)
                                {
                                //Error, la cadena de texto no se puede convertir en fecha.
                                }
                        }

                }

        }
        catch(Exception e)
        {
            System.out.println(e.getMessage());
        }

      }

private void calcular_opepodf(int opcion)
    {
        System.out.println("modifico y a calcular");
        DecimalFormat myFormat = new DecimalFormat("############.#####");
        DecimalFormat myFormat2 = new DecimalFormat("############.#####");
        DecimalFormat myFormatt = new DecimalFormat("############.##");
        int numerofilas=0,error=0,i=0,pod=0;
        String conexts[]=null;
        float factor=0,importe=0,cantidad=0,importep=0,imported=0,conext=0,salsubdios=0;
      switch (opcion)
                    {
                        case 1:
                            numerofilas=this.jtable_modelo_detallenominafope.getRowCount();
                               for(i = 0 ;i < numerofilas; i++)
                                {
                                   factor=Float.valueOf(this.jtable_modelo_detallenominafope.getValueAt(i, 5).toString());
                                   if(factor==0)
                                   {
                                       importe=Float.valueOf(this.jtable_modelo_detallenominafope.getValueAt(i, 6).toString());
                                       if(importe>0)
                                            {
                                               salsubdios=importe/Float.valueOf(this.jtf_diast.getText());
                                               factor=salsubdios/Float.valueOf(this.jtable_modelo_detallenominafope.getValueAt(i, 4).toString());
                                               this.jtable_modelo_detallenominafope.setValueAt(myFormat2.format(factor), i, 5);
                                               this.jtable_modelo_detallenominafope.setValueAt(this.jtf_diast.getText(), i, 3);
                                            }
                                       
                                   }
                                   else
                                        {
                                            importe=(Float.valueOf(this.jtable_modelo_detallenominafope.getValueAt(i, 3).toString()).floatValue()*Float.valueOf(this.jtable_modelo_detallenominafope.getValueAt(i, 4).toString()).floatValue())*factor;
                                        }
                                         pod=Integer.valueOf(this.jtable_modelo_detallenominafope.getValueAt(i, 2).toString());
                                        if(pod>0)
                                            {
                                                importep+= importe*1.0;
                                                this.jtable_modelo_detallenominafope.setValueAt(myFormat.format(importe), i, 6);
                                            }
                                        else
                                            {
                                                imported+= importe*-1.0;
                                                this.jtable_modelo_detallenominafope.setValueAt(myFormat.format(importe*-1), i, 6);
                                            }
                                            //evaluo si es salario extra los sumo a la variable concepto extra conext
                                         conexts=this.jtable_modelo_detallenominafope.getValueAt(i, 7).toString().split(":");
                                         if(conexts[1].equals("t"))
                                         conext+=Float.valueOf(this.jtable_modelo_detallenominafope.getValueAt(i, 6).toString());
                                }
                                //conext+=Float.valueOf(this.jtf_salariof.getText().toString())*Float.valueOf(this.jtf_diast.getText().toString());
                                 //   this.jtf_salarionof.setText(myFormatt.format(conext));
                                    System.out.println("importe p"+importep+" importeper:"+imported);
                                    this.jtf_totalperf.setText(myFormatt.format(importep));
                                    this.jtf_totaldecf.setText(myFormatt.format(imported));
                                    this.jtf_totalnof.setText(myFormatt.format(importep+imported));
                                    this.jtf_salarionofixdia.setText(myFormatt.format((Float.valueOf(this.jtf_salarionof.getText().toString())-Float.valueOf(this.jtf_totalnof.getText().toString()))/Float.valueOf(this.jtf_diast.getText().toString())));

                                    this.jtf_salarionoftotal.setText(myFormatt.format(Float.valueOf(this.jtf_salarionof.getText().toString())-Float.valueOf(this.jtf_totalnof.getText().toString())));
                                    this.Pagoefectivo.setText(myFormatt.format((Float.valueOf(this.jtf_totalnof.getText().toString())+Float.valueOf(this.jtf_totalpernof.getText().toString()))+Float.valueOf(this.jtf_totaldecnof.getText().toString())));
                        break;
                        case 2:
                            importep=0;
                            numerofilas=this.jtable_modelo_detallenominanofope.getRowCount();
                            for(i = 0 ;i < numerofilas; i++)
                                {
                                 factor=Float.valueOf(this.jtable_modelo_detallenominanofope.getValueAt(i, 5).toString());
                                   if(factor==0)
                                   {
                                        importe=Float.valueOf(this.jtable_modelo_detallenominanofope.getValueAt(i, 6).toString());
                                          if(importe>0)
                                            {
                                               salsubdios=importe/Float.valueOf(this.jtf_diast.getText());
                                               factor=salsubdios/Float.valueOf(this.jtable_modelo_detallenominanofope.getValueAt(i, 4).toString());
                                               this.jtable_modelo_detallenominanofope.setValueAt(myFormat2.format(factor), i, 5);
                                               this.jtable_modelo_detallenominanofope.setValueAt(this.jtf_diast.getText(), i, 3);
                                            }
                                  }
                                   else
                                   {
                                       importe=(Float.valueOf(this.jtable_modelo_detallenominanofope.getValueAt(i, 3).toString())*Float.valueOf(this.jtable_modelo_detallenominanofope.getValueAt(i, 4).toString()))*factor;
                                   }
                                   pod=Integer.valueOf(this.jtable_modelo_detallenominanofope.getValueAt(i, 2).toString());
                                        if(pod>0)
                                            {
                                                importep+= importe*1;
                                                this.jtable_modelo_detallenominanofope.setValueAt(myFormat.format(importe), i, 6);
                                            }
                                        else
                                            {
                                                imported+= importe*-1;
                                                this.jtable_modelo_detallenominanofope.setValueAt(myFormat.format(importe*-1), i, 6);
                                            }
                                }
                             

                            this.jtf_totalpernof.setText(myFormatt.format(importep));
                            this.jtf_totaldecnof.setText(myFormatt.format(imported));
                            this.jtf_totalimportenof.setText(myFormatt.format(importep+imported));
                            this.Pagoefectivo.setText(myFormatt.format((Float.valueOf(this.jtf_totalnof.getText().toString())+Float.valueOf(this.jtf_totalpernof.getText().toString()))+Float.valueOf(this.jtf_totaldecnof.getText().toString())));
                        break;

                    }
    }

private void calcular_totales()
    {
        System.out.println("modifico y a calcular");
        DecimalFormat myFormatt = new DecimalFormat("###,###,###,###.##");
        int numerofilas=0,error=0,i=0,pod=0;
        float factor=0,importe=0,cantidad=0,importef=0,importenof=0;

                            numerofilas=this.jtable_modelo_detallenomina.getRowCount();
                               for(i = 0 ;i < numerofilas; i++)
                                {
                                            importef+=Float.valueOf(this.jtable_modelo_detallenomina.getValueAt(i, 4).toString()).floatValue();
                                            importenof+=Float.valueOf(this.jtable_modelo_detallenomina.getValueAt(i, 7).toString()).floatValue();
                                            importe+=Float.valueOf(this.jtable_modelo_detallenomina.getValueAt(i, 8).toString()).floatValue();
                                }
                                    //System.out.println("importe p"+importep+" importeper:"+imported);
                                    this.jtf_totalf.setText(myFormatt.format(importef));
                                    this.jtf_totalnofd.setText(myFormatt.format(importenof));
                                    this.jtf_totald.setText(myFormatt.format(importe));
  }

private void construir_total_poddet()
    {
         DecimalFormat myFormatter = new DecimalFormat("###,###,###");
         float totalve=0,totalve2=0;
         int totalfilasreporte=this.jtable_modelo_podhistorial_det.getRowCount()-1,i=0,ii=0;
         int numerotiendas=this.jtable_modelo_podhistorial_det.getColumnCount()-2;
         //genero los totales por tienda

         for( ii=0;ii<numerotiendas;ii++)
            {
             totalve=0;
             totalve2=0;
                for(i=0;i<totalfilasreporte;i++)
                    {
                        totalve+=Float.valueOf(jtable_modelo_podhistorial_det.getValueAt(i, ii+1).toString());

                    }
                    jtable_modelo_podhistorial_det.setValueAt("<html><h3><b>"+myFormatter.format(totalve)+"</b></h3></html>",i,ii+1);
            }
           totalve=0;
           totalve2=0;
           for(i=0;i<totalfilasreporte;i++)
                  {
                        totalve=0;
                        for( ii=0;ii<numerotiendas;ii++)
                            {
                                totalve+=Float.valueOf(jtable_modelo_podhistorial_det.getValueAt(i, ii+1).toString());
                            }
                        jtable_modelo_podhistorial_det.setValueAt("<html><h3><b>"+myFormatter.format(totalve)+"</b></h3></html>",i,ii+1);
                  }
            totalve=0;
            for(i=0;i<totalfilasreporte;i++)
                    {
                        totalve+=Float.valueOf(jtable_modelo_podhistorial_det.getValueAt(i, numerotiendas+1).toString().replace(",","").replace("<html><h3><b>", "").replace("</b></h3></html>", ""));

                    }
                   jtable_modelo_podhistorial_det.setValueAt("<html><h3><b>"+myFormatter.format(totalve)+"</b></h3></html>",i,numerotiendas+1);
     }
private void calcula_pago()
{
DecimalFormat myFormat2 = new DecimalFormat("############.####");
int numerofilasd=this.jtable_modelo_detallenominafope.getRowCount(),ii=0;
String codidetalle[]=null;
this.jtf_salarionof.setText(myFormat2.format(Float.valueOf(this.jtf_diast.getText().toString())*Float.valueOf(this.jtf_salariof.getText().toString())));
        for( ii=0;ii<numerofilasd;ii++)
                        {
                        codidetalle=jtable_modelo_detallenominafope.getValueAt(ii, 7).toString().split(":");
                        if (codidetalle[0].equals("t"))
                            {
                                jtable_modelo_detallenominafope.setValueAt(this.jtf_diast.getText(),ii ,3);
                            }
                        }

this.calcular_opepodf(1);

numerofilasd=this.jtable_modelo_detallenominanofope.getRowCount();
     for( ii=0;ii<numerofilasd;ii++)
                        {
                        codidetalle=jtable_modelo_detallenominanofope.getValueAt(ii, 7).toString().split(":");
                        if (codidetalle[0].equals("t"))
                            {
                                jtable_modelo_detallenominanofope.setValueAt(this.jtf_salarionofixdia.getText(),ii ,4);
                                jtable_modelo_detallenominanofope.setValueAt(this.jtf_diast.getText(),ii ,3);
                            }
                        }

this.calcular_opepodf(2);

}

private void carga_datos_asistencia(int opcion,String busca1,String busca2,String busca3)
    {
    //invoco al metodo que trae el recordset de datos
    int encontro=0,minutos=0;
      DecimalFormat myFormat2 = new DecimalFormat("############");
      String texto="";
     while(jtable_modelo_historialresumen.getRowCount()>0)jtable_modelo_historialresumen.removeRow(0);
     texto="select * from x1_supervision_empleados_asistencia_catalogo(15,'"+busca1+"','"+busca2+"','"+busca3+"') as (id smallint,descrip text,cantidad bigint);";
        try
        {
         rs = x.sieuno_executediversosv2(texto,si_variables.getconexiongral());
            while (rs.next())
                {
                    jtable_modelo_historialresumen.addRow(new Object[]{rs.getString("cantidad"),rs.getString("id")+":"+rs.getString("descrip")});
                }
        }
        catch(Exception e)
        {
            System.out.println(e.getMessage());
        }

      while(jtable_modelo_historialpuntualidad.getRowCount()>0)jtable_modelo_historialpuntualidad.removeRow(0);
     texto="select * from x1_supervision_empleados_asistencia_catalogo(16,'"+busca1+"','"+busca2+"','"+busca3+"') as (id smallint,descrip text,cantidad bigint);";
        try
        {
         rs = x.sieuno_executediversosv2(texto,si_variables.getconexiongral());
            while (rs.next())
                {
                    jtable_modelo_historialpuntualidad.addRow(new Object[]{rs.getString("cantidad"),rs.getString("id")+":"+rs.getString("descrip")});
                }
        }
        catch(Exception e)
        {
            System.out.println(e.getMessage());
        }



      }

private void documento_guardar(int opcion)
    {
        ResultSet rs = null;
          DecimalFormat myFormat = new DecimalFormat("############.####");
                    //this.quitardescripcion();
                  
                    java.util.Vector arreglodeart_dis=this.jtable_modelo_detallenominafope.getDataVector();
                    String articulos_papostgresqld=arreglodeart_dis.toString();
                    articulos_papostgresqld=articulos_papostgresqld.replace('[','{');
                    articulos_papostgresqld=articulos_papostgresqld.replace(']','}');
                    articulos_papostgresqld=articulos_papostgresqld.replace("null",".");

                    java.util.Vector arreglodeart_dis2=this.jtable_modelo_detallenominanofope.getDataVector();
                    String articulos_papostgresqld2=arreglodeart_dis2.toString();
                    articulos_papostgresqld2=articulos_papostgresqld2.replace('[','{');
                    articulos_papostgresqld2=articulos_papostgresqld2.replace(']','}');
                    articulos_papostgresqld2=articulos_papostgresqld2.replace("null",".");

                    String texto="select * from x1_supervision_empleados_p_nomina_doctos_insert_ind("+opcion+",'"+this.jtf_idperiodoa.getText().toUpperCase()+"','"+this.jtf_idpatrona.getText().toUpperCase()+"','"+""+"','"+""+"','"+""+"','"+articulos_papostgresqld+"','"+articulos_papostgresqld2+"','"+this.jtf_idempf.getText()+"','"+myFormat.format(Float.valueOf(this.jtf_totalperf.getText().toString()))+"','"+myFormat.format(Float.valueOf(this.jtf_totaldecf.getText().toString()))+"','"+myFormat.format(Float.valueOf(this.jtf_totaldecf.getText().toString())+Float.valueOf(this.jtf_totalperf.getText().toString()))+"','"+myFormat.format(Float.valueOf(this.jtf_totalpernof.getText().toString()))+"','"+myFormat.format(Float.valueOf(this.jtf_totaldecnof.getText()))+"','"+myFormat.format(Float.valueOf(this.jtf_totalpernof.getText().toString())+Float.valueOf(this.jtf_totaldecnof.getText().toString()))+"','"+myFormat.format(Float.valueOf(this.jtf_totaldecf.getText().toString())+Float.valueOf(this.jtf_totalperf.getText().toString())+Float.valueOf(this.jtf_totalpernof.getText().toString())+Float.valueOf(this.jtf_totaldecnof.getText().toString()))+"','"+this.jtf_idpatronfac.getText()+"','"+this.jtf_idpatronnofact.getText()+"')";
                    System.out.println(texto);
                    try {
                        rs=x.sieuno_executediversosv2(texto,si_variables.getconexiongral());
                        while (rs.next())
                        {
                            if (rs.getInt(1) > 0)
                                    {
                                        datosmodificados=0;
                                        JOptionPane.showMessageDialog(null,"Documento "+rs.getInt(1)+" Correcto, Gracias", "Sistema Integral(Alta Compra) : Confirmacion",1);
                                    }
                                else
                                    {
                                        JOptionPane.showMessageDialog(null," Error Verifique sus Cantidades", "Sistema Integral(Alta Compra) : Error",1);
                                    }
                        }
                    } catch(Exception e) {
                        System.out.println(e.getMessage());
                        JOptionPane.showMessageDialog(null," Recepcion Incorrecta ", "Sistema Integral(Alta Compra) : Error",1);
                    }

    }
private void loadcombo_razsocpatron(){

           try
            {
            rs = x.sieuno_executediversosv2("select * from x1_supervision_empleados_patron(1,'','','','') as (idraz smallint,nombre character varying(60));",si_variables.getconexiongral());
               while (rs.next())
                    {

                      this.jcmbx_idrazonsocial.addItem(rs.getString("idraz")+":"+rs.getString("nombre"));
                      this.jcmbx_idrazonsocialnof.addItem(rs.getString("idraz")+":"+rs.getString("nombre"));

                    }
             }
            catch(Exception e)
            {
                System.out.println(e.getMessage());
            }
    }
private void loadcombo_razsocpatron2(){

           try
            {
            rs = x.sieuno_executediversosv2("select * from x1_supervision_empleados_patron(1,'','','','') as (idraz smallint,nombre character varying(60));",si_variables.getconexiongral());
               while (rs.next())
                    {
                      this.jcmbx_idrazonsocial1.addItem(rs.getString("idraz")+":"+rs.getString("nombre"));
                      this.jcmbx_idrazonsocialnof1.addItem(rs.getString("idraz")+":"+rs.getString("nombre"));

                    }
             }
            catch(Exception e)
            {
                System.out.println(e.getMessage());
            }
    }



private void loadcombo_razsocpatron_clasif(){
           try
            {
            rs = x.sieuno_executediversosv2("select * from x1_supervision_empleados_patron(10,'','','','') as (idcla smallint,nombrec text,idpat smallint);",si_variables.getconexiongral());
               while (rs.next())
                    {
                      this.jcmbx_idrazonclasif.addItem(rs.getString("idcla")+":"+rs.getString("nombrec"));

                    }
             }
            catch(Exception e)
            {
                System.out.println(e.getMessage());
            }
    }

private void loadcombo_razsocpatron_clasif2(){
           try
            {
            rs = x.sieuno_executediversosv2("select * from x1_supervision_empleados_patron(10,'','','','') as (idcla smallint,nombrec text,idpat smallint);",si_variables.getconexiongral());
               while (rs.next())
                    {

                      this.jcmbx_idrazonclasif1.addItem(rs.getString("idcla")+":"+rs.getString("nombrec"));
                    }
             }
            catch(Exception e)
            {
                System.out.println(e.getMessage());
            }
    }
private void loadcombo_esquema(){
           try
            {
            rs = x.sieuno_executediversosv2("select * from x1_supervision_empleados_esquema_cat(1,'','','','') as (id smallint,descrip text,idstatus smallint);",si_variables.getconexiongral());
               while (rs.next())
                    {
                      this.jcmbx_idesquema.addItem(rs.getString("id")+":"+rs.getString("descrip"));
                    }
             }
            catch(Exception e)
            {
                System.out.println(e.getMessage());
            }
    }

private void loadcombo_tipoperiodo(){
           //try
            //{
            //rs = x.sieuno_executediversosv2("select * from x1_supervision_empleados_esquema_cat(1,'','','','') as (id smallint,descrip text,idstatus smallint);",si_variables.getconexiongral());
              // while (rs.next())
                //    {
                      this.jcmbox_idperiodotipo.addItem("1:Quincenal");
                      this.jcmbox_idperiodotipo.addItem("2:Semanal");
               //     }
             //}
            //catch(Exception e)
            //{
              //  System.out.println(e.getMessage());
            //}
    }

private void loadcombo_areas()
{
 String texto="select * from x1_supervision_empleados_catalogo_plazas(23,'','','','') as (idp smallint,area text,puesto text);";
        try
         {
            rs = x.sieuno_executediversosv2(texto,si_variables.getconexiongral());
            while (rs.next())
                {

                   this.jcmbx_idrazonclasif2.addItem(rs.getString("idp")+":"+rs.getString("puesto")+"("+rs.getString("area")+")");
                }

        }
         catch(Exception e)
        {
            System.out.println(e.getMessage());
        }
}

private void carga_datos_empleado_historialperce(int opcion,String empleado,String percepcion)
   {
       //invoco al metodo que trae el recordset de datos
       //voy por el detalle del documento
       Object[] fnewRow = new Object[8];
       DecimalFormat myFormat = new DecimalFormat("############.####");
       String texto="select * from x1_supervision_empleados_p_nomina_percepodeduc("+opcion+",'"+empleado+"','"+percepcion+"','') as (idreg integer,iddetalle integer,idperoded smallint,cantidad numeric,idempleado integer,salario numeric,factor numeric,importe numeric,iddep smallint);";
       conbo1=0;
       this.jcmbx_idrazonsocialnof2.removeAllItems();
       System.out.println(texto);
       try
           {
            rs = x.sieuno_executediversosv2(texto,si_variables.getconexiongral());
            while (rs.next())
                {
                        this.jcmbx_idrazonsocialnof2.addItem(myFormat.format(rs.getFloat("cantidad"))+":"+myFormat.format(rs.getFloat("salario"))+":"+myFormat.format(rs.getFloat("factor"))+":"+myFormat.format(rs.getFloat("importe")));

                }
           }
        catch(Exception e)
            {
            System.out.println(e.getMessage());
            }
       conbo1=1;
    }
private void find_textoenjtable(int columna,int filainicio,String texto)
    {

       int totalfilasreporte=this.jtable_modelo_detallenomina.getRowCount(),i=0,encontro=0,coincidencias=0;
       String cadenaobtenida="";
         //genero los totales por tienda
        for(i=0;i<totalfilasreporte;i++)
            {
                cadenaobtenida=jtable_modelo_detallenomina.getValueAt(i, columnaanterior).toString().replace("<html><BODY bgcolor=#CC0066>", "").replace("</BODY></html>","");
                jtable_modelo_detallenomina.setValueAt(cadenaobtenida, i,columnaanterior);
            }
       for(i=0;i<totalfilasreporte;i++)
            {
                cadenaobtenida=jtable_modelo_detallenomina.getValueAt(i, columna).toString();
                encontro=cadenaobtenida.indexOf(texto);
                if(encontro!=-1)
                    {
                        System.out.println(cadenaobtenida+" en pocicion "+i);
                        this.jt_detalleprenominapodf.changeSelection(i, 0, true, false);
                        jtable_modelo_detallenomina.setValueAt("<html><BODY bgcolor=#CC0066>"+cadenaobtenida+"</BODY></html>", i,columna);
                        encontro=-1;
                        coincidencias++;
                    }
            }
        columnaanterior=columna;


    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGroup1 = new javax.swing.ButtonGroup();
        driver1 = new org.postgresql.Driver();
        jPanel2 = new javax.swing.JPanel();
        jScrollPane2 = new javax.swing.JScrollPane();
        jt_periodos = new javax.swing.JTable()
        {
            public boolean isCellEditable(int rowIndex, int mColIndex) {
                return false;
            }
        }
        ;
        jbtn_agregarprenomina = new javax.swing.JButton();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel3 = new javax.swing.JPanel();
        jlbl_textobuscado = new javax.swing.JLabel();
        jPanel9 = new javax.swing.JPanel();
        jScrollPane3 = new javax.swing.JScrollPane();
        jt_detalleprenomina = new javax.swing.JTable()
        {
            public boolean isCellEditable(int rowIndex, int mColIndex) {

                return false;
            }
        }
        ;
        jtf_prenomina = new javax.swing.JTextField();
        jtf_departamento = new javax.swing.JTextField();
        jtf_idperiodoa = new javax.swing.JTextField();
        jtf_idpatrona = new javax.swing.JTextField();
        jchbx_verempleado = new javax.swing.JCheckBox();
        jlbl_cantidadregistros = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jcbx_eliminar = new javax.swing.JCheckBox();
        jPanel18 = new javax.swing.JPanel();
        jLabel20 = new javax.swing.JLabel();
        jtf_sueldobase6 = new javax.swing.JTextField();
        jLabel53 = new javax.swing.JLabel();
        jtf_sueldobase7 = new javax.swing.JTextField();
        jLabel54 = new javax.swing.JLabel();
        jcmbx_idrazonsocial1 = new javax.swing.JComboBox();
        jtf_sueldobase8 = new javax.swing.JTextField();
        jLabel55 = new javax.swing.JLabel();
        jtf_sueldobase9 = new javax.swing.JTextField();
        jLabel56 = new javax.swing.JLabel();
        jButton2 = new javax.swing.JButton();
        jLabel57 = new javax.swing.JLabel();
        jtf_sueldobase10 = new javax.swing.JTextField();
        jLabel58 = new javax.swing.JLabel();
        jtf_empleadorfc1 = new javax.swing.JTextField();
        jLabel59 = new javax.swing.JLabel();
        jtf_empleadocurp1 = new javax.swing.JTextField();
        jLabel60 = new javax.swing.JLabel();
        jtf_empleadoimss1 = new javax.swing.JTextField();
        jLabel61 = new javax.swing.JLabel();
        jcmbx_idrazonsocialnof1 = new javax.swing.JComboBox();
        jtf_idempf1 = new javax.swing.JTextField();
        jtf_nominadeanombre1 = new javax.swing.JTextField();
        jtf_diast1 = new javax.swing.JTextField();
        jtf_salariof1 = new javax.swing.JTextField();
        jtf_salarionof1 = new javax.swing.JTextField();
        jLabel62 = new javax.swing.JLabel();
        Pagoefectivo1 = new javax.swing.JTextField();
        jLabel21 = new javax.swing.JLabel();
        jLabel63 = new javax.swing.JLabel();
        jdc_fechaingreso1 = new com.toedter.calendar.JDateChooser();
        jLabel64 = new javax.swing.JLabel();
        jdc_fechaingresoimss = new com.toedter.calendar.JDateChooser();
        jLabel65 = new javax.swing.JLabel();
        jcmbx_idrazonclasif1 = new javax.swing.JComboBox();
        jtf_idperiodoa_des = new javax.swing.JTextField();
        jPanel22 = new javax.swing.JPanel();
        jScrollPane17 = new javax.swing.JScrollPane();
        jt_resumenhistorial = new javax.swing.JTable()
        {
            public boolean isCellEditable(int rowIndex, int mColIndex) {
                return false;
            }
        }
        ;
        jScrollPane18 = new javax.swing.JScrollPane();
        jt_resumenhistorialpuntual = new javax.swing.JTable()
        {
            public boolean isCellEditable(int rowIndex, int mColIndex) {
                return false;
            }
        }
        ;
        jtf_periodofi = new javax.swing.JTextField();
        jtf_periodoff = new javax.swing.JTextField();
        jLabel69 = new javax.swing.JLabel();
        jPanel4 = new javax.swing.JPanel();
        jPanel15 = new javax.swing.JPanel();
        jScrollPane5 = new javax.swing.JScrollPane();
        jt_detalleprenominapodf = new javax.swing.JTable()
        {
            public boolean isCellEditable(int rowIndex, int mColIndex) {

                return false;
            }
        }
        ;
        jLabel2 = new javax.swing.JLabel();
        jtf_totalf = new javax.swing.JTextField();
        jLabel3 = new javax.swing.JLabel();
        jtf_totalnofd = new javax.swing.JTextField();
        jLabel12 = new javax.swing.JLabel();
        jtf_totald = new javax.swing.JTextField();
        jchbx_verempleado1 = new javax.swing.JCheckBox();
        jPanel17 = new javax.swing.JPanel();
        jLabel19 = new javax.swing.JLabel();
        jtf_sueldobase1 = new javax.swing.JTextField();
        jLabel43 = new javax.swing.JLabel();
        jtf_sueldobase2 = new javax.swing.JTextField();
        jLabel44 = new javax.swing.JLabel();
        jcmbx_idrazonsocial = new javax.swing.JComboBox();
        jtf_sueldobase3 = new javax.swing.JTextField();
        jLabel45 = new javax.swing.JLabel();
        jtf_sueldobase4 = new javax.swing.JTextField();
        jLabel46 = new javax.swing.JLabel();
        jButton1 = new javax.swing.JButton();
        jLabel47 = new javax.swing.JLabel();
        jtf_sueldobase5 = new javax.swing.JTextField();
        jLabel48 = new javax.swing.JLabel();
        jtf_empleadorfc = new javax.swing.JTextField();
        jLabel49 = new javax.swing.JLabel();
        jtf_empleadocurp = new javax.swing.JTextField();
        jLabel50 = new javax.swing.JLabel();
        jtf_empleadoimss = new javax.swing.JTextField();
        jLabel51 = new javax.swing.JLabel();
        jcmbx_idrazonsocialnof = new javax.swing.JComboBox();
        jtf_idempf = new javax.swing.JTextField();
        jtf_nominadeanombre = new javax.swing.JTextField();
        jtf_diast = new javax.swing.JTextField();
        jtf_salariof = new javax.swing.JTextField();
        jtf_salarionof = new javax.swing.JTextField();
        jLabel52 = new javax.swing.JLabel();
        Pagoefectivo = new javax.swing.JTextField();
        jLabel17 = new javax.swing.JLabel();
        jdc_fechaingresoimss1 = new com.toedter.calendar.JDateChooser();
        jdc_fechaingreso2 = new com.toedter.calendar.JDateChooser();
        jLabel66 = new javax.swing.JLabel();
        jLabel67 = new javax.swing.JLabel();
        jcmbx_idrazonsocialnof2 = new javax.swing.JComboBox();
        jLabel68 = new javax.swing.JLabel();
        jtf_idpatronfac = new javax.swing.JTextField();
        jtf_idpatronnofact = new javax.swing.JTextField();
        jcmbx_idrazonclasif = new javax.swing.JComboBox();
        jPanel14 = new javax.swing.JPanel();
        jScrollPane8 = new javax.swing.JScrollPane();
        jt_detalleprenomina3 = new javax.swing.JTable()
        {
            public boolean isCellEditable(int rowIndex, int mColIndex) {
                if (mColIndex>1)
                return true;
                else
                return false;
            }
        }
        ;
        jLabel1 = new javax.swing.JLabel();
        jtf_totalperf = new javax.swing.JTextField();
        jLabel6 = new javax.swing.JLabel();
        jtf_totaldecf = new javax.swing.JTextField();
        jLabel8 = new javax.swing.JLabel();
        jtf_totalnof = new javax.swing.JTextField();
        jtf_idselecf = new javax.swing.JTextField();
        jPanel16 = new javax.swing.JPanel();
        jScrollPane9 = new javax.swing.JScrollPane();
        jt_detalleprenomina4 = new javax.swing.JTable()
        {
            public boolean isCellEditable(int rowIndex, int mColIndex) {
                if (mColIndex>1)
                return true;
                else
                return false;
            }
        }
        ;
        jtf_salarionoftotal = new javax.swing.JTextField();
        jtf_salarionofixdia = new javax.swing.JTextField();
        jLabel7 = new javax.swing.JLabel();
        jtf_totalpernof = new javax.swing.JTextField();
        jLabel4 = new javax.swing.JLabel();
        jtf_totaldecnof = new javax.swing.JTextField();
        jtf_totalimportenof = new javax.swing.JTextField();
        jLabel18 = new javax.swing.JLabel();
        jbtn_nominafcam = new javax.swing.JButton();
        jtf_idselecnof = new javax.swing.JTextField();
        jPanel7 = new javax.swing.JPanel();
        jPanel8 = new javax.swing.JPanel();
        jScrollPane6 = new javax.swing.JScrollPane();
        jt_nomina_peryded = new javax.swing.JTable()
        {
            public boolean isCellEditable(int rowIndex, int mColIndex) {
                return false;
            }
        }
        ;
        jcmbx_idesquema = new javax.swing.JComboBox();
        jLabel26 = new javax.swing.JLabel();
        jtf_idpodesquema = new javax.swing.JTextField();
        jtf_idpodesqdesc = new javax.swing.JTextField();
        jtf_idpodesquemafac = new javax.swing.JTextField();
        jLabel27 = new javax.swing.JLabel();
        jbtn_aplicarcambio = new javax.swing.JButton();
        jtf_operacionidias = new javax.swing.JTextField();
        jLabel28 = new javax.swing.JLabel();
        jLabel29 = new javax.swing.JLabel();
        jtf_operacioniimpor = new javax.swing.JTextField();
        jLabel30 = new javax.swing.JLabel();
        jtf_idpodesquemasal = new javax.swing.JTextField();
        jbtn_aplicarcambio1 = new javax.swing.JButton();
        jPanel13 = new javax.swing.JPanel();
        jScrollPane10 = new javax.swing.JScrollPane();
        jt_detalleprenominaxempleaf = new javax.swing.JTable()
        {
            public boolean isCellEditable(int rowIndex, int mColIndex) {

                return false;
            }
        }
        ;
        jScrollPane11 = new javax.swing.JScrollPane();
        jt_detalleprenominaxempleanof = new javax.swing.JTable()
        {
            public boolean isCellEditable(int rowIndex, int mColIndex) {

                return false;
            }
        }
        ;
        jPanel11 = new javax.swing.JPanel();
        jLabel9 = new javax.swing.JLabel();
        jtf_rzdescripcion = new javax.swing.JTextField();
        jLabel10 = new javax.swing.JLabel();
        jtf_rzrazon = new javax.swing.JTextField();
        jLabel11 = new javax.swing.JLabel();
        jtf_rzpatron = new javax.swing.JTextField();
        jLabel16 = new javax.swing.JLabel();
        jtf_periodo = new javax.swing.JTextField();
        jPanel12 = new javax.swing.JPanel();
        jScrollPane14 = new javax.swing.JScrollPane();
        jt_detalleprenominapodf2 = new javax.swing.JTable()
        {
            public boolean isCellEditable(int rowIndex, int mColIndex) {
                return false;
            }
        }
        ;
        jLabel14 = new javax.swing.JLabel();
        jtf_totalnofd2 = new javax.swing.JTextField();
        jLabel15 = new javax.swing.JLabel();
        jtf_totald2 = new javax.swing.JTextField();
        jButton4 = new javax.swing.JButton();
        jPanel19 = new javax.swing.JPanel();
        jScrollPane12 = new javax.swing.JScrollPane();
        jt_detalleprenominapodf1 = new javax.swing.JTable()
        {
            public boolean isCellEditable(int rowIndex, int mColIndex) {
                return false;
            }
        }
        ;
        jButton3 = new javax.swing.JButton();
        jLabel13 = new javax.swing.JLabel();
        jtf_totalf2 = new javax.swing.JTextField();
        jbtn_impresionanterior = new javax.swing.JButton();
        jLabel25 = new javax.swing.JLabel();
        jtf_rzpatrondir = new javax.swing.JTextField();
        jPanel20 = new javax.swing.JPanel();
        jPanel21 = new javax.swing.JPanel();
        jcmbox_idperiodofin = new javax.swing.JComboBox();
        jLabel23 = new javax.swing.JLabel();
        jcmbox_idperiodoini = new javax.swing.JComboBox();
        jLabel22 = new javax.swing.JLabel();
        jScrollPane15 = new javax.swing.JScrollPane();
        jt_detalleprenominapodf3 = new javax.swing.JTable()
        {
            public boolean isCellEditable(int rowIndex, int mColIndex) {
                return false;
            }
        }
        ;
        jLabel24 = new javax.swing.JLabel();
        jButton5 = new javax.swing.JButton();
        jScrollPane16 = new javax.swing.JScrollPane();
        jt_detallepodpatron = new javax.swing.JTable()
        {
            public boolean isCellEditable(int rowIndex, int mColIndex) {
                return false;
            }
        }
        ;
        jtf_idperini = new javax.swing.JTextField();
        jtf_idperfin = new javax.swing.JTextField();
        jPanel23 = new javax.swing.JPanel();
        jLabel31 = new javax.swing.JLabel();
        jdc_fechainicialnomina = new com.toedter.calendar.JDateChooser();
        jLabel32 = new javax.swing.JLabel();
        jdc_fechafinalnomina = new com.toedter.calendar.JDateChooser();
        jLabel33 = new javax.swing.JLabel();
        jLabel34 = new javax.swing.JLabel();
        jdc_fechafinalinsidencia = new com.toedter.calendar.JDateChooser();
        jdc_fechainicialincidencia = new com.toedter.calendar.JDateChooser();
        jLabel35 = new javax.swing.JLabel();
        jLabel36 = new javax.swing.JLabel();
        jtf_descripperiodo = new javax.swing.JTextField();
        jLabel37 = new javax.swing.JLabel();
        jLabel38 = new javax.swing.JLabel();
        jLabel39 = new javax.swing.JLabel();
        jcmbox_idperiodotipo = new javax.swing.JComboBox();
        jLabel40 = new javax.swing.JLabel();
        jtf_obserperiodoin = new javax.swing.JTextField();
        jLabel41 = new javax.swing.JLabel();
        jButton6 = new javax.swing.JButton();
        jPanel25 = new javax.swing.JPanel();
        jPanel26 = new javax.swing.JPanel();
        jScrollPane20 = new javax.swing.JScrollPane();
        jt_detalleprenominapodf4 = new javax.swing.JTable()
        {
            public boolean isCellEditable(int rowIndex, int mColIndex) {

                return false;
            }
        }
        ;
        jPanel27 = new javax.swing.JPanel();
        jButton7 = new javax.swing.JButton();
        jtf_plazaidemp = new javax.swing.JTextField();
        jLabel42 = new javax.swing.JLabel();
        jtf_plazaidemp1 = new javax.swing.JTextField();
        jtf_plazaidplaza = new javax.swing.JTextField();
        jLabel70 = new javax.swing.JLabel();
        jcmbx_idrazonclasif2 = new javax.swing.JComboBox();
        jPanel10 = new javax.swing.JPanel();
        jTabbedPane2 = new javax.swing.JTabbedPane();
        jPanel5 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jt_catprenominas = new javax.swing.JTable()
        {
            public boolean isCellEditable(int rowIndex, int mColIndex) {
                return false;
            }
        }
        ;
        jPanel6 = new javax.swing.JPanel();
        jScrollPane4 = new javax.swing.JScrollPane();
        jt_catpatrones = new javax.swing.JTable()
        {
            public boolean isCellEditable(int rowIndex, int mColIndex) {
                return false;
            }
        }
        ;
        jPanel24 = new javax.swing.JPanel();
        jScrollPane19 = new javax.swing.JScrollPane();
        jt_catpatrones1 = new javax.swing.JTable()
        {
            public boolean isCellEditable(int rowIndex, int mColIndex) {
                return false;
            }
        }
        ;
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        jmni_catalogoempleados = new javax.swing.JMenuItem();
        jmni_perderdatosnog = new javax.swing.JMenuItem();
        jmni_salir = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();
        jMenuItem1 = new javax.swing.JMenuItem();
        jmni_buscar = new javax.swing.JMenuItem();
        jmni_agregaidempleado = new javax.swing.JMenuItem();
        jMenuItem2 = new javax.swing.JMenuItem();
        jmni_actualizar = new javax.swing.JMenuItem();
        jMenuItem3 = new javax.swing.JMenuItem();
        jMenu3 = new javax.swing.JMenu();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(si_rhnominafacil.Si_rhnominafacilApp.class).getContext().getResourceMap(rh_empleados_prenomina.class);
        setTitle(resourceMap.getString("Form.title")); // NOI18N
        setName("Form"); // NOI18N

        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPanel2.border.title"))); // NOI18N
        jPanel2.setName("jPanel2"); // NOI18N

        jScrollPane2.setName("jScrollPane2"); // NOI18N

        jt_periodos.setModel(this.jtable_modelo_periodo);
        jt_periodos.setName("jt_periodos"); // NOI18N
        jt_periodos.setRowHeight(22);
        jt_periodos.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jt_periodosMouseClicked(evt);
                if(evt.getClickCount() >= 1)
                {
                    dioclick(evt);
                }
            }
        });
        jScrollPane2.setViewportView(jt_periodos);

        jbtn_agregarprenomina.setIcon(resourceMap.getIcon("jbtn_agregarprenomina.icon")); // NOI18N
        jbtn_agregarprenomina.setText(resourceMap.getString("jbtn_agregarprenomina.text")); // NOI18N
        jbtn_agregarprenomina.setName("jbtn_agregarprenomina"); // NOI18N
        jbtn_agregarprenomina.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtn_agregarprenominaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addComponent(jbtn_agregarprenomina)
                .addContainerGap())
            .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 407, Short.MAX_VALUE)
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addComponent(jbtn_agregarprenomina)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 136, Short.MAX_VALUE))
        );

        jTabbedPane1.setName("jTabbedPane1"); // NOI18N
        jTabbedPane1.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                jTabbedPane1StateChanged(evt);
            }
        });

        jPanel3.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));
        jPanel3.setName("jPanel3"); // NOI18N

        jlbl_textobuscado.setFont(resourceMap.getFont("jlbl_textobuscado.font")); // NOI18N
        jlbl_textobuscado.setName("jlbl_textobuscado"); // NOI18N

        jPanel9.setName("jPanel9"); // NOI18N

        jScrollPane3.setName("jScrollPane3"); // NOI18N

        jt_detalleprenomina.setModel(this.jtable_modelo_detalleprenomina);
        jt_detalleprenomina.setName("jt_detalleprenomina"); // NOI18N
        jt_detalleprenomina.setRowHeight(22);
        jt_detalleprenomina.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jt_detalleprenominaMouseClicked(evt);
                if(evt.getClickCount() >= 1)
                {
                    dioclickpret(evt);
                }
                if(evt.getClickCount() >= 2)
                {
                    dioclickpre_genpa(evt);
                }
            }
        });
        jt_detalleprenomina.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                jt_detalleprenominaPropertyChange(evt);
            }
        });
        jScrollPane3.setViewportView(jt_detalleprenomina);

        jtf_prenomina.setEditable(false);
        jtf_prenomina.setText(resourceMap.getString("jtf_prenomina.text")); // NOI18N
        jtf_prenomina.setName("jtf_prenomina"); // NOI18N

        jtf_departamento.setEditable(false);
        jtf_departamento.setFont(resourceMap.getFont("jtf_departamento.font")); // NOI18N
        jtf_departamento.setText(resourceMap.getString("jtf_departamento.text")); // NOI18N
        jtf_departamento.setName("jtf_departamento"); // NOI18N

        jtf_idperiodoa.setEditable(false);
        jtf_idperiodoa.setName("jtf_idperiodoa"); // NOI18N

        jtf_idpatrona.setEditable(false);
        jtf_idpatrona.setName("jtf_idpatrona"); // NOI18N

        jchbx_verempleado.setText(resourceMap.getString("jchbx_verempleado.text")); // NOI18N
        jchbx_verempleado.setName("jchbx_verempleado"); // NOI18N
        jchbx_verempleado.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jchbx_verempleadoActionPerformed(evt);
            }
        });

        jlbl_cantidadregistros.setFont(resourceMap.getFont("jlbl_cantidadregistros.font")); // NOI18N
        jlbl_cantidadregistros.setText(resourceMap.getString("jlbl_cantidadregistros.text")); // NOI18N
        jlbl_cantidadregistros.setName("jlbl_cantidadregistros"); // NOI18N

        jLabel5.setFont(resourceMap.getFont("jLabel5.font")); // NOI18N
        jLabel5.setText(resourceMap.getString("jLabel5.text")); // NOI18N
        jLabel5.setName("jLabel5"); // NOI18N

        jcbx_eliminar.setText(resourceMap.getString("jcbx_eliminar.text")); // NOI18N
        jcbx_eliminar.setName("jcbx_eliminar"); // NOI18N
        jcbx_eliminar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jcbx_eliminarActionPerformed(evt);
            }
        });

        jPanel18.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPanel18.border.title"))); // NOI18N
        jPanel18.setName("jPanel18"); // NOI18N

        jLabel20.setText(resourceMap.getString("jLabel20.text")); // NOI18N
        jLabel20.setName("jLabel20"); // NOI18N

        jtf_sueldobase6.setText(resourceMap.getString("jtf_sueldobase6.text")); // NOI18N
        jtf_sueldobase6.setToolTipText(resourceMap.getString("jtf_sueldobase6.toolTipText")); // NOI18N
        jtf_sueldobase6.setName("jtf_sueldobase6"); // NOI18N
        jtf_sueldobase6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jtf_sueldobase6ActionPerformed(evt);
            }
        });

        jLabel53.setText(resourceMap.getString("jLabel53.text")); // NOI18N
        jLabel53.setName("jLabel53"); // NOI18N

        jtf_sueldobase7.setText(resourceMap.getString("jtf_sueldobase7.text")); // NOI18N
        jtf_sueldobase7.setToolTipText(resourceMap.getString("jtf_sueldobase7.toolTipText")); // NOI18N
        jtf_sueldobase7.setName("jtf_sueldobase7"); // NOI18N
        jtf_sueldobase7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jtf_sueldobase7ActionPerformed(evt);
            }
        });

        jLabel54.setText(resourceMap.getString("jLabel54.text")); // NOI18N
        jLabel54.setName("jLabel54"); // NOI18N

        jcmbx_idrazonsocial1.setName("jcmbx_idrazonsocial1"); // NOI18N

        jtf_sueldobase8.setText(resourceMap.getString("jtf_sueldobase8.text")); // NOI18N
        jtf_sueldobase8.setToolTipText(resourceMap.getString("jtf_sueldobase8.toolTipText")); // NOI18N
        jtf_sueldobase8.setName("jtf_sueldobase8"); // NOI18N
        jtf_sueldobase8.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jtf_sueldobase8ActionPerformed(evt);
            }
        });

        jLabel55.setText(resourceMap.getString("jLabel55.text")); // NOI18N
        jLabel55.setName("jLabel55"); // NOI18N

        jtf_sueldobase9.setText(resourceMap.getString("jtf_sueldobase9.text")); // NOI18N
        jtf_sueldobase9.setToolTipText(resourceMap.getString("jtf_sueldobase9.toolTipText")); // NOI18N
        jtf_sueldobase9.setName("jtf_sueldobase9"); // NOI18N
        jtf_sueldobase9.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jtf_sueldobase9ActionPerformed(evt);
            }
        });

        jLabel56.setText(resourceMap.getString("jLabel56.text")); // NOI18N
        jLabel56.setName("jLabel56"); // NOI18N

        jButton2.setIcon(resourceMap.getIcon("jButton2.icon")); // NOI18N
        jButton2.setText(resourceMap.getString("jButton2.text")); // NOI18N
        jButton2.setName("jButton2"); // NOI18N
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });

        jLabel57.setText(resourceMap.getString("jLabel57.text")); // NOI18N
        jLabel57.setName("jLabel57"); // NOI18N

        jtf_sueldobase10.setText(resourceMap.getString("jtf_sueldobase10.text")); // NOI18N
        jtf_sueldobase10.setToolTipText(resourceMap.getString("jtf_sueldobase10.toolTipText")); // NOI18N
        jtf_sueldobase10.setName("jtf_sueldobase10"); // NOI18N
        jtf_sueldobase10.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jtf_sueldobase10ActionPerformed(evt);
            }
        });

        jLabel58.setText(resourceMap.getString("jLabel58.text")); // NOI18N
        jLabel58.setName("jLabel58"); // NOI18N

        jtf_empleadorfc1.setToolTipText(resourceMap.getString("jtf_empleadorfc1.toolTipText")); // NOI18N
        jtf_empleadorfc1.setName("jtf_empleadorfc1"); // NOI18N
        jtf_empleadorfc1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jtf_empleadorfc1ActionPerformed(evt);
            }
        });

        jLabel59.setText(resourceMap.getString("jLabel59.text")); // NOI18N
        jLabel59.setName("jLabel59"); // NOI18N

        jtf_empleadocurp1.setToolTipText(resourceMap.getString("jtf_empleadocurp1.toolTipText")); // NOI18N
        jtf_empleadocurp1.setName("jtf_empleadocurp1"); // NOI18N
        jtf_empleadocurp1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jtf_empleadocurp1ActionPerformed(evt);
            }
        });

        jLabel60.setText(resourceMap.getString("jLabel60.text")); // NOI18N
        jLabel60.setName("jLabel60"); // NOI18N

        jtf_empleadoimss1.setToolTipText(resourceMap.getString("jtf_empleadoimss1.toolTipText")); // NOI18N
        jtf_empleadoimss1.setName("jtf_empleadoimss1"); // NOI18N
        jtf_empleadoimss1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jtf_empleadoimss1ActionPerformed(evt);
            }
        });

        jLabel61.setText(resourceMap.getString("jLabel61.text")); // NOI18N
        jLabel61.setName("jLabel61"); // NOI18N

        jcmbx_idrazonsocialnof1.setName("jcmbx_idrazonsocialnof1"); // NOI18N

        jtf_idempf1.setEditable(false);
        jtf_idempf1.setFont(resourceMap.getFont("jtf_idempf1.font")); // NOI18N
        jtf_idempf1.setText(resourceMap.getString("jtf_idempf1.text")); // NOI18N
        jtf_idempf1.setName("jtf_idempf1"); // NOI18N

        jtf_nominadeanombre1.setEditable(false);
        jtf_nominadeanombre1.setName("jtf_nominadeanombre1"); // NOI18N

        jtf_diast1.setFont(resourceMap.getFont("jtf_diast1.font")); // NOI18N
        jtf_diast1.setHorizontalAlignment(javax.swing.JTextField.LEFT);
        jtf_diast1.setText(resourceMap.getString("jtf_diast1.text")); // NOI18N
        jtf_diast1.setName("jtf_diast1"); // NOI18N
        jtf_diast1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jtf_diast1ActionPerformed(evt);
            }
        });

        jtf_salariof1.setEditable(false);
        jtf_salariof1.setFont(resourceMap.getFont("jtf_salariof1.font")); // NOI18N
        jtf_salariof1.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        jtf_salariof1.setText(resourceMap.getString("jtf_salariof1.text")); // NOI18N
        jtf_salariof1.setToolTipText(resourceMap.getString("jtf_salariof1.toolTipText")); // NOI18N
        jtf_salariof1.setName("jtf_salariof1"); // NOI18N

        jtf_salarionof1.setEditable(false);
        jtf_salarionof1.setFont(resourceMap.getFont("jtf_salarionof1.font")); // NOI18N
        jtf_salarionof1.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        jtf_salarionof1.setText(resourceMap.getString("jtf_salarionof1.text")); // NOI18N
        jtf_salarionof1.setToolTipText(resourceMap.getString("jtf_salarionof1.toolTipText")); // NOI18N
        jtf_salarionof1.setName("jtf_salarionof1"); // NOI18N

        jLabel62.setText(resourceMap.getString("jLabel62.text")); // NOI18N
        jLabel62.setName("jLabel62"); // NOI18N

        Pagoefectivo1.setEditable(false);
        Pagoefectivo1.setFont(resourceMap.getFont("Pagoefectivo1.font")); // NOI18N
        Pagoefectivo1.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        Pagoefectivo1.setText(resourceMap.getString("Pagoefectivo1.text")); // NOI18N
        Pagoefectivo1.setName("Pagoefectivo1"); // NOI18N

        jLabel21.setText(resourceMap.getString("jLabel21.text")); // NOI18N
        jLabel21.setName("jLabel21"); // NOI18N

        jLabel63.setFont(resourceMap.getFont("jLabel63.font")); // NOI18N
        jLabel63.setText(resourceMap.getString("jLabel63.text")); // NOI18N
        jLabel63.setName("jLabel63"); // NOI18N

        jdc_fechaingreso1.setToolTipText(resourceMap.getString("jdc_fechaingreso1.toolTipText")); // NOI18N
        jdc_fechaingreso1.setDateFormatString(resourceMap.getString("jdc_fechaingreso1.dateFormatString")); // NOI18N
        jdc_fechaingreso1.setName("jdc_fechaingreso1"); // NOI18N
        jdc_fechaingreso1.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                jdc_fechaingreso1KeyPressed(evt);
            }
        });

        jLabel64.setFont(resourceMap.getFont("jLabel64.font")); // NOI18N
        jLabel64.setText(resourceMap.getString("jLabel64.text")); // NOI18N
        jLabel64.setName("jLabel64"); // NOI18N

        jdc_fechaingresoimss.setToolTipText(resourceMap.getString("jdc_fechaingresoimss.toolTipText")); // NOI18N
        jdc_fechaingresoimss.setDateFormatString(resourceMap.getString("jdc_fechaingresoimss.dateFormatString")); // NOI18N
        jdc_fechaingresoimss.setName("jdc_fechaingresoimss"); // NOI18N
        jdc_fechaingresoimss.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                jdc_fechaingresoimssKeyPressed(evt);
            }
        });

        jLabel65.setFont(resourceMap.getFont("jLabel65.font")); // NOI18N
        jLabel65.setText(resourceMap.getString("jLabel65.text")); // NOI18N
        jLabel65.setName("jLabel65"); // NOI18N

        jcmbx_idrazonclasif1.setName("jcmbx_idrazonclasif1"); // NOI18N

        javax.swing.GroupLayout jPanel18Layout = new javax.swing.GroupLayout(jPanel18);
        jPanel18.setLayout(jPanel18Layout);
        jPanel18Layout.setHorizontalGroup(
            jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel18Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel18Layout.createSequentialGroup()
                        .addComponent(jLabel56)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtf_sueldobase9, javax.swing.GroupLayout.DEFAULT_SIZE, 100, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel61)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jcmbx_idrazonsocialnof1, javax.swing.GroupLayout.PREFERRED_SIZE, 239, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jLabel65)
                        .addGap(60, 60, 60))
                    .addGroup(jPanel18Layout.createSequentialGroup()
                        .addComponent(jLabel53)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtf_sueldobase7, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel55)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtf_sueldobase8, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel57)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtf_sueldobase10, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel54)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jcmbx_idrazonsocial1, 0, 193, Short.MAX_VALUE))
                    .addGroup(jPanel18Layout.createSequentialGroup()
                        .addComponent(jtf_idempf1, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtf_nominadeanombre1, javax.swing.GroupLayout.DEFAULT_SIZE, 176, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel62, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtf_diast1, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtf_salariof1, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jtf_salarionof1, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel21)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(Pagoefectivo1, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel18Layout.createSequentialGroup()
                        .addComponent(jLabel58)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtf_empleadorfc1, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel59)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtf_empleadocurp1, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel60, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtf_empleadoimss1, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtf_sueldobase6, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 28, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel18Layout.createSequentialGroup()
                        .addComponent(jLabel63)
                        .addGap(18, 18, 18)
                        .addComponent(jdc_fechaingreso1, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel64)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jdc_fechaingresoimss, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jcmbx_idrazonclasif1, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 20, Short.MAX_VALUE)
                        .addComponent(jButton2)))
                .addContainerGap())
        );
        jPanel18Layout.setVerticalGroup(
            jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel18Layout.createSequentialGroup()
                .addContainerGap(12, Short.MAX_VALUE)
                .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jtf_idempf1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jtf_nominadeanombre1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(Pagoefectivo1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jtf_salarionof1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jtf_salariof1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jtf_diast1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel62)
                    .addComponent(jLabel21))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel58)
                    .addComponent(jtf_empleadorfc1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel59)
                    .addComponent(jtf_empleadocurp1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel60)
                    .addComponent(jtf_empleadoimss1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel20)
                    .addComponent(jtf_sueldobase6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel53)
                    .addComponent(jtf_sueldobase7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel55)
                    .addComponent(jcmbx_idrazonsocial1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jtf_sueldobase8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel57)
                    .addComponent(jtf_sueldobase10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel54))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel56)
                    .addComponent(jLabel61)
                    .addComponent(jcmbx_idrazonsocialnof1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jtf_sueldobase9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel65))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jdc_fechaingreso1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel63)
                    .addComponent(jLabel64)
                    .addComponent(jdc_fechaingresoimss, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButton2)
                        .addComponent(jcmbx_idrazonclasif1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );

        jtf_idperiodoa_des.setEditable(false);
        jtf_idperiodoa_des.setName("jtf_idperiodoa_des"); // NOI18N

        jPanel22.setName("jPanel22"); // NOI18N

        jScrollPane17.setName("jScrollPane17"); // NOI18N

        jt_resumenhistorial.setModel(this.jtable_modelo_historialresumen);
        jt_resumenhistorial.setName("jt_resumenhistorial"); // NOI18N
        jt_resumenhistorial.setRowHeight(25);
        jScrollPane17.setViewportView(jt_resumenhistorial);

        jScrollPane18.setName("jScrollPane18"); // NOI18N

        jt_resumenhistorialpuntual.setModel(this.jtable_modelo_historialpuntualidad);
        jt_resumenhistorialpuntual.setName("jt_resumenhistorialpuntual"); // NOI18N
        jt_resumenhistorialpuntual.setRowHeight(25);
        jScrollPane18.setViewportView(jt_resumenhistorialpuntual);

        jtf_periodofi.setEditable(false);
        jtf_periodofi.setText(resourceMap.getString("jtf_periodofi.text")); // NOI18N
        jtf_periodofi.setName("jtf_periodofi"); // NOI18N

        jtf_periodoff.setEditable(false);
        jtf_periodoff.setName("jtf_periodoff"); // NOI18N

        jLabel69.setText(resourceMap.getString("jLabel69.text")); // NOI18N
        jLabel69.setName("jLabel69"); // NOI18N

        javax.swing.GroupLayout jPanel22Layout = new javax.swing.GroupLayout(jPanel22);
        jPanel22.setLayout(jPanel22Layout);
        jPanel22Layout.setHorizontalGroup(
            jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel22Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel22Layout.createSequentialGroup()
                        .addComponent(jLabel69, javax.swing.GroupLayout.DEFAULT_SIZE, 61, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtf_periodofi, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(33, 33, 33)
                        .addComponent(jtf_periodoff, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(21, 21, 21))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel22Layout.createSequentialGroup()
                        .addComponent(jScrollPane18, javax.swing.GroupLayout.PREFERRED_SIZE, 182, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap())))
            .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel22Layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jScrollPane17, javax.swing.GroupLayout.PREFERRED_SIZE, 196, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(183, Short.MAX_VALUE)))
        );
        jPanel22Layout.setVerticalGroup(
            jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel22Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jtf_periodoff, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jtf_periodofi, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel69))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane18, javax.swing.GroupLayout.DEFAULT_SIZE, 136, Short.MAX_VALUE)
                .addContainerGap())
            .addGroup(jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel22Layout.createSequentialGroup()
                    .addContainerGap(37, Short.MAX_VALUE)
                    .addComponent(jScrollPane17, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap()))
        );

        javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
        jPanel9.setLayout(jPanel9Layout);
        jPanel9Layout.setHorizontalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel9Layout.createSequentialGroup()
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jScrollPane3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 1018, Short.MAX_VALUE)
                    .addGroup(jPanel9Layout.createSequentialGroup()
                        .addComponent(jtf_prenomina, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtf_departamento, javax.swing.GroupLayout.PREFERRED_SIZE, 330, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtf_idperiodoa, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtf_idperiodoa_des, javax.swing.GroupLayout.PREFERRED_SIZE, 189, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jtf_idpatrona, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jchbx_verempleado)
                        .addGap(30, 30, 30)
                        .addComponent(jlbl_cantidadregistros, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jLabel5)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 79, Short.MAX_VALUE)
                        .addComponent(jcbx_eliminar))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel9Layout.createSequentialGroup()
                        .addComponent(jPanel18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel22, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanel9Layout.setVerticalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jlbl_cantidadregistros)
                    .addComponent(jLabel5)
                    .addComponent(jcbx_eliminar)
                    .addComponent(jtf_departamento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jtf_prenomina, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jchbx_verempleado)
                    .addComponent(jtf_idperiodoa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jtf_idpatrona, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jtf_idperiodoa_des, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 219, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jPanel22, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGap(564, 564, 564)
                .addComponent(jlbl_textobuscado, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(386, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jlbl_textobuscado)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab(resourceMap.getString("jPanel3.TabConstraints.tabTitle"), jPanel3); // NOI18N

        jPanel4.setName("jPanel4"); // NOI18N

        jPanel15.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPanel15.border.title"))); // NOI18N
        jPanel15.setName("jPanel15"); // NOI18N

        jScrollPane5.setName("jScrollPane5"); // NOI18N

        jt_detalleprenominapodf.setModel(this.jtable_modelo_detallenomina);
        jt_detalleprenominapodf.setName("jt_detalleprenominapodf"); // NOI18N
        jt_detalleprenominapodf.setRowHeight(22);
        jt_detalleprenominapodf.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jt_detalleprenominapodfMouseClicked(evt);
                if(evt.getClickCount() >= 1)
                {
                    dioclickdetfope(evt);
                }
            }
        });
        jScrollPane5.setViewportView(jt_detalleprenominapodf);

        jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
        jLabel2.setName("jLabel2"); // NOI18N

        jtf_totalf.setEditable(false);
        jtf_totalf.setFont(resourceMap.getFont("jtf_totalf.font")); // NOI18N
        jtf_totalf.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        jtf_totalf.setName("jtf_totalf"); // NOI18N

        jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N
        jLabel3.setName("jLabel3"); // NOI18N

        jtf_totalnofd.setEditable(false);
        jtf_totalnofd.setFont(resourceMap.getFont("jtf_totalnofd.font")); // NOI18N
        jtf_totalnofd.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        jtf_totalnofd.setName("jtf_totalnofd"); // NOI18N

        jLabel12.setText(resourceMap.getString("jLabel12.text")); // NOI18N
        jLabel12.setName("jLabel12"); // NOI18N

        jtf_totald.setEditable(false);
        jtf_totald.setFont(resourceMap.getFont("jtf_totald.font")); // NOI18N
        jtf_totald.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        jtf_totald.setName("jtf_totald"); // NOI18N

        jchbx_verempleado1.setText(resourceMap.getString("jchbx_verempleado1.text")); // NOI18N
        jchbx_verempleado1.setName("jchbx_verempleado1"); // NOI18N
        jchbx_verempleado1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jchbx_verempleado1ActionPerformed(evt);
            }
        });

        jPanel17.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPanel17.border.title"))); // NOI18N
        jPanel17.setName("jPanel17"); // NOI18N

        jLabel19.setText(resourceMap.getString("jLabel19.text")); // NOI18N
        jLabel19.setName("jLabel19"); // NOI18N

        jtf_sueldobase1.setText(resourceMap.getString("jtf_sueldobase1.text")); // NOI18N
        jtf_sueldobase1.setToolTipText(resourceMap.getString("jtf_sueldobase1.toolTipText")); // NOI18N
        jtf_sueldobase1.setName("jtf_sueldobase1"); // NOI18N
        jtf_sueldobase1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jtf_sueldobase1ActionPerformed(evt);
            }
        });

        jLabel43.setText(resourceMap.getString("jLabel43.text")); // NOI18N
        jLabel43.setName("jLabel43"); // NOI18N

        jtf_sueldobase2.setText(resourceMap.getString("jtf_sueldobase2.text")); // NOI18N
        jtf_sueldobase2.setToolTipText(resourceMap.getString("jtf_sueldobase2.toolTipText")); // NOI18N
        jtf_sueldobase2.setName("jtf_sueldobase2"); // NOI18N
        jtf_sueldobase2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jtf_sueldobase2ActionPerformed(evt);
            }
        });

        jLabel44.setText(resourceMap.getString("jLabel44.text")); // NOI18N
        jLabel44.setName("jLabel44"); // NOI18N

        jcmbx_idrazonsocial.setName("jcmbx_idrazonsocial"); // NOI18N

        jtf_sueldobase3.setText(resourceMap.getString("jtf_sueldobase3.text")); // NOI18N
        jtf_sueldobase3.setToolTipText(resourceMap.getString("jtf_sueldobase3.toolTipText")); // NOI18N
        jtf_sueldobase3.setName("jtf_sueldobase3"); // NOI18N
        jtf_sueldobase3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jtf_sueldobase3ActionPerformed(evt);
            }
        });

        jLabel45.setText(resourceMap.getString("jLabel45.text")); // NOI18N
        jLabel45.setName("jLabel45"); // NOI18N

        jtf_sueldobase4.setText(resourceMap.getString("jtf_sueldobase4.text")); // NOI18N
        jtf_sueldobase4.setToolTipText(resourceMap.getString("jtf_sueldobase4.toolTipText")); // NOI18N
        jtf_sueldobase4.setName("jtf_sueldobase4"); // NOI18N
        jtf_sueldobase4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jtf_sueldobase4ActionPerformed(evt);
            }
        });

        jLabel46.setText(resourceMap.getString("jLabel46.text")); // NOI18N
        jLabel46.setName("jLabel46"); // NOI18N

        jButton1.setIcon(resourceMap.getIcon("jButton1.icon")); // NOI18N
        jButton1.setText(resourceMap.getString("jButton1.text")); // NOI18N
        jButton1.setName("jButton1"); // NOI18N
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        jLabel47.setText(resourceMap.getString("jLabel47.text")); // NOI18N
        jLabel47.setName("jLabel47"); // NOI18N

        jtf_sueldobase5.setText(resourceMap.getString("jtf_sueldobase5.text")); // NOI18N
        jtf_sueldobase5.setToolTipText(resourceMap.getString("jtf_sueldobase5.toolTipText")); // NOI18N
        jtf_sueldobase5.setName("jtf_sueldobase5"); // NOI18N
        jtf_sueldobase5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jtf_sueldobase5ActionPerformed(evt);
            }
        });

        jLabel48.setText(resourceMap.getString("jLabel48.text")); // NOI18N
        jLabel48.setName("jLabel48"); // NOI18N

        jtf_empleadorfc.setToolTipText(resourceMap.getString("jtf_empleadorfc.toolTipText")); // NOI18N
        jtf_empleadorfc.setName("jtf_empleadorfc"); // NOI18N
        jtf_empleadorfc.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jtf_empleadorfcActionPerformed(evt);
            }
        });

        jLabel49.setText(resourceMap.getString("jLabel49.text")); // NOI18N
        jLabel49.setName("jLabel49"); // NOI18N

        jtf_empleadocurp.setToolTipText(resourceMap.getString("jtf_empleadocurp.toolTipText")); // NOI18N
        jtf_empleadocurp.setName("jtf_empleadocurp"); // NOI18N
        jtf_empleadocurp.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jtf_empleadocurpActionPerformed(evt);
            }
        });

        jLabel50.setText(resourceMap.getString("jLabel50.text")); // NOI18N
        jLabel50.setName("jLabel50"); // NOI18N

        jtf_empleadoimss.setToolTipText(resourceMap.getString("jtf_empleadoimss.toolTipText")); // NOI18N
        jtf_empleadoimss.setName("jtf_empleadoimss"); // NOI18N
        jtf_empleadoimss.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jtf_empleadoimssActionPerformed(evt);
            }
        });

        jLabel51.setText(resourceMap.getString("jLabel51.text")); // NOI18N
        jLabel51.setName("jLabel51"); // NOI18N

        jcmbx_idrazonsocialnof.setName("jcmbx_idrazonsocialnof"); // NOI18N

        jtf_idempf.setEditable(false);
        jtf_idempf.setFont(resourceMap.getFont("jtf_idempf.font")); // NOI18N
        jtf_idempf.setText(resourceMap.getString("jtf_idempf.text")); // NOI18N
        jtf_idempf.setName("jtf_idempf"); // NOI18N

        jtf_nominadeanombre.setEditable(false);
        jtf_nominadeanombre.setText(resourceMap.getString("jtf_nominadeanombre.text")); // NOI18N
        jtf_nominadeanombre.setName("jtf_nominadeanombre"); // NOI18N

        jtf_diast.setFont(resourceMap.getFont("jtf_diast.font")); // NOI18N
        jtf_diast.setHorizontalAlignment(javax.swing.JTextField.LEFT);
        jtf_diast.setText(resourceMap.getString("jtf_diast.text")); // NOI18N
        jtf_diast.setName("jtf_diast"); // NOI18N
        jtf_diast.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jtf_diastActionPerformed(evt);
            }
        });

        jtf_salariof.setEditable(false);
        jtf_salariof.setFont(resourceMap.getFont("jtf_salariof.font")); // NOI18N
        jtf_salariof.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        jtf_salariof.setText(resourceMap.getString("jtf_salariof.text")); // NOI18N
        jtf_salariof.setToolTipText(resourceMap.getString("jtf_salariof.toolTipText")); // NOI18N
        jtf_salariof.setName("jtf_salariof"); // NOI18N

        jtf_salarionof.setEditable(false);
        jtf_salarionof.setFont(resourceMap.getFont("jtf_salarionof.font")); // NOI18N
        jtf_salarionof.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        jtf_salarionof.setText(resourceMap.getString("jtf_salarionof.text")); // NOI18N
        jtf_salarionof.setToolTipText(resourceMap.getString("jtf_salarionof.toolTipText")); // NOI18N
        jtf_salarionof.setName("jtf_salarionof"); // NOI18N

        jLabel52.setText(resourceMap.getString("jLabel52.text")); // NOI18N
        jLabel52.setName("jLabel52"); // NOI18N

        Pagoefectivo.setEditable(false);
        Pagoefectivo.setFont(resourceMap.getFont("Pagoefectivo.font")); // NOI18N
        Pagoefectivo.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        Pagoefectivo.setText(resourceMap.getString("Pagoefectivo.text")); // NOI18N
        Pagoefectivo.setName("Pagoefectivo"); // NOI18N

        jLabel17.setText(resourceMap.getString("jLabel17.text")); // NOI18N
        jLabel17.setName("jLabel17"); // NOI18N

        jdc_fechaingresoimss1.setToolTipText(resourceMap.getString("jdc_fechaingresoimss1.toolTipText")); // NOI18N
        jdc_fechaingresoimss1.setDateFormatString(resourceMap.getString("jdc_fechaingresoimss1.dateFormatString")); // NOI18N
        jdc_fechaingresoimss1.setName("jdc_fechaingresoimss1"); // NOI18N
        jdc_fechaingresoimss1.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                jdc_fechaingresoimss1KeyPressed(evt);
            }
        });

        jdc_fechaingreso2.setToolTipText(resourceMap.getString("jdc_fechaingreso2.toolTipText")); // NOI18N
        jdc_fechaingreso2.setDateFormatString(resourceMap.getString("jdc_fechaingreso2.dateFormatString")); // NOI18N
        jdc_fechaingreso2.setName("jdc_fechaingreso2"); // NOI18N
        jdc_fechaingreso2.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyPressed(java.awt.event.KeyEvent evt) {
                jdc_fechaingreso2KeyPressed(evt);
            }
        });

        jLabel66.setFont(resourceMap.getFont("jLabel66.font")); // NOI18N
        jLabel66.setText(resourceMap.getString("jLabel66.text")); // NOI18N
        jLabel66.setName("jLabel66"); // NOI18N

        jLabel67.setFont(resourceMap.getFont("jLabel67.font")); // NOI18N
        jLabel67.setText(resourceMap.getString("jLabel67.text")); // NOI18N
        jLabel67.setName("jLabel67"); // NOI18N

        jcmbx_idrazonsocialnof2.setName("jcmbx_idrazonsocialnof2"); // NOI18N
        jcmbx_idrazonsocialnof2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jcmbx_idrazonsocialnof2ActionPerformed(evt);
            }
        });

        jLabel68.setText(resourceMap.getString("jLabel68.text")); // NOI18N
        jLabel68.setName("jLabel68"); // NOI18N

        jtf_idpatronfac.setEditable(false);
        jtf_idpatronfac.setFont(resourceMap.getFont("jtf_idpatronfac.font")); // NOI18N
        jtf_idpatronfac.setText(resourceMap.getString("jtf_idpatronfac.text")); // NOI18N
        jtf_idpatronfac.setName("jtf_idpatronfac"); // NOI18N

        jtf_idpatronnofact.setEditable(false);
        jtf_idpatronnofact.setFont(resourceMap.getFont("jtf_idpatronnofact.font")); // NOI18N
        jtf_idpatronnofact.setText(resourceMap.getString("jtf_idpatronnofact.text")); // NOI18N
        jtf_idpatronnofact.setName("jtf_idpatronnofact"); // NOI18N

        jcmbx_idrazonclasif.setName("jcmbx_idrazonclasif"); // NOI18N

        javax.swing.GroupLayout jPanel17Layout = new javax.swing.GroupLayout(jPanel17);
        jPanel17.setLayout(jPanel17Layout);
        jPanel17Layout.setHorizontalGroup(
            jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel17Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel17Layout.createSequentialGroup()
                        .addComponent(jtf_idempf, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtf_nominadeanombre, javax.swing.GroupLayout.PREFERRED_SIZE, 167, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel52, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtf_diast, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtf_salariof, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jtf_salarionof, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel17)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(Pagoefectivo, javax.swing.GroupLayout.DEFAULT_SIZE, 112, Short.MAX_VALUE))
                    .addGroup(jPanel17Layout.createSequentialGroup()
                        .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jcmbx_idrazonclasif, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel17Layout.createSequentialGroup()
                                    .addComponent(jLabel48)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jtf_empleadorfc))
                                .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel17Layout.createSequentialGroup()
                                    .addComponent(jLabel43)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jtf_sueldobase2, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel17Layout.createSequentialGroup()
                                    .addComponent(jLabel46)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jtf_sueldobase4))))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel17Layout.createSequentialGroup()
                                .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel17Layout.createSequentialGroup()
                                        .addComponent(jLabel49)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jtf_empleadocurp, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jLabel50)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jtf_empleadoimss, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel17Layout.createSequentialGroup()
                                        .addComponent(jLabel45)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jtf_sueldobase3, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jLabel47)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jtf_sueldobase5, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(jPanel17Layout.createSequentialGroup()
                                        .addComponent(jLabel67)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jdc_fechaingreso2, javax.swing.GroupLayout.DEFAULT_SIZE, 143, Short.MAX_VALUE)
                                        .addGap(18, 18, 18)
                                        .addComponent(jLabel51)))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addGroup(jPanel17Layout.createSequentialGroup()
                                        .addComponent(jcmbx_idrazonsocialnof, 0, 147, Short.MAX_VALUE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jButton1))
                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel17Layout.createSequentialGroup()
                                        .addComponent(jLabel44)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jcmbx_idrazonsocial, 0, 177, Short.MAX_VALUE)
                                        .addContainerGap())
                                    .addGroup(jPanel17Layout.createSequentialGroup()
                                        .addComponent(jLabel66)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jdc_fechaingresoimss1, javax.swing.GroupLayout.PREFERRED_SIZE, 92, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jLabel19, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jtf_sueldobase1, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE))))
                            .addGroup(jPanel17Layout.createSequentialGroup()
                                .addComponent(jtf_idpatronnofact, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(jtf_idpatronfac, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(jLabel68)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jcmbx_idrazonsocialnof2, 0, 234, Short.MAX_VALUE)
                                .addContainerGap())))))
        );
        jPanel17Layout.setVerticalGroup(
            jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel17Layout.createSequentialGroup()
                .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jtf_idempf, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jtf_nominadeanombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(Pagoefectivo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jtf_salarionof, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jtf_salariof, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jtf_diast, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel52)
                    .addComponent(jLabel17))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel48)
                        .addComponent(jtf_empleadorfc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabel49)
                        .addComponent(jtf_empleadocurp, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabel50)
                        .addComponent(jtf_empleadoimss, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabel66))
                    .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel19)
                        .addComponent(jtf_sueldobase1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jdc_fechaingresoimss1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel43)
                    .addComponent(jtf_sueldobase2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel45)
                    .addComponent(jcmbx_idrazonsocial, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jtf_sueldobase3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel47)
                    .addComponent(jtf_sueldobase5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel44))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel46)
                        .addComponent(jtf_sueldobase4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jButton1)
                        .addComponent(jLabel51)
                        .addComponent(jcmbx_idrazonsocialnof, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jLabel67))
                    .addComponent(jdc_fechaingreso2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel17Layout.createSequentialGroup()
                        .addGap(6, 6, 6)
                        .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel68)
                            .addComponent(jcmbx_idrazonsocialnof2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanel17Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jtf_idpatronnofact, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jtf_idpatronfac, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jcmbx_idrazonclasif, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap())
        );

        javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15);
        jPanel15.setLayout(jPanel15Layout);
        jPanel15Layout.setHorizontalGroup(
            jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel15Layout.createSequentialGroup()
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jScrollPane5, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 640, Short.MAX_VALUE)
                    .addComponent(jPanel17, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanel15Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jchbx_verempleado1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 96, Short.MAX_VALUE)
                        .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtf_totalf, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 56, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtf_totalnofd, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel12)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jtf_totald, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        jPanel15Layout.setVerticalGroup(
            jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel15Layout.createSequentialGroup()
                .addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 221, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jchbx_verempleado1)
                    .addComponent(jLabel12)
                    .addComponent(jtf_totald, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel3)
                    .addComponent(jtf_totalnofd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel2)
                    .addComponent(jtf_totalf, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel17, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        jPanel14.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPanel14.border.title"))); // NOI18N
        jPanel14.setName("jPanel14"); // NOI18N

        jScrollPane8.setName("jScrollPane8"); // NOI18N

        jt_detalleprenomina3.setModel(this.jtable_modelo_detallenominafope);
        jt_detalleprenomina3.setName("jt_detalleprenomina3"); // NOI18N
        jt_detalleprenomina3.setRowHeight(22);
        jt_detalleprenomina3.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jt_detalleprenomina3MouseClicked(evt);
                if(evt.getClickCount() >= 2)
                {
                    dioclickdethis(evt);
                }
            }
        });
        jt_detalleprenomina3.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                jt_detalleprenomina3PropertyChange(evt);
            }
        });
        jScrollPane8.setViewportView(jt_detalleprenomina3);

        jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
        jLabel1.setName("jLabel1"); // NOI18N

        jtf_totalperf.setEditable(false);
        jtf_totalperf.setFont(resourceMap.getFont("jtf_totalperf.font")); // NOI18N
        jtf_totalperf.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        jtf_totalperf.setText(resourceMap.getString("jtf_totalperf.text")); // NOI18N
        jtf_totalperf.setToolTipText(resourceMap.getString("jtf_totalperf.toolTipText")); // NOI18N
        jtf_totalperf.setName("jtf_totalperf"); // NOI18N

        jLabel6.setText(resourceMap.getString("jLabel6.text")); // NOI18N
        jLabel6.setName("jLabel6"); // NOI18N

        jtf_totaldecf.setEditable(false);
        jtf_totaldecf.setFont(resourceMap.getFont("jtf_totaldecf.font")); // NOI18N
        jtf_totaldecf.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        jtf_totaldecf.setText(resourceMap.getString("jtf_totaldecf.text")); // NOI18N
        jtf_totaldecf.setToolTipText(resourceMap.getString("jtf_totaldecf.toolTipText")); // NOI18N
        jtf_totaldecf.setName("jtf_totaldecf"); // NOI18N

        jLabel8.setText(resourceMap.getString("jLabel8.text")); // NOI18N
        jLabel8.setName("jLabel8"); // NOI18N

        jtf_totalnof.setEditable(false);
        jtf_totalnof.setFont(resourceMap.getFont("jtf_totalnof.font")); // NOI18N
        jtf_totalnof.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        jtf_totalnof.setText(resourceMap.getString("jtf_totalnof.text")); // NOI18N
        jtf_totalnof.setToolTipText(resourceMap.getString("jtf_totalnof.toolTipText")); // NOI18N
        jtf_totalnof.setName("jtf_totalnof"); // NOI18N

        jtf_idselecf.setEditable(false);
        jtf_idselecf.setFont(resourceMap.getFont("jtf_idselecf.font")); // NOI18N
        jtf_idselecf.setText(resourceMap.getString("jtf_idselecf.text")); // NOI18N
        jtf_idselecf.setName("jtf_idselecf"); // NOI18N

        javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14);
        jPanel14.setLayout(jPanel14Layout);
        jPanel14Layout.setHorizontalGroup(
            jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel14Layout.createSequentialGroup()
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 13, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jtf_totalperf, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(16, 16, 16)
                .addComponent(jLabel6)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jtf_totaldecf, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel8)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jtf_totalnof, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jtf_idselecf, javax.swing.GroupLayout.DEFAULT_SIZE, 7, Short.MAX_VALUE)
                .addContainerGap())
            .addComponent(jScrollPane8, javax.swing.GroupLayout.DEFAULT_SIZE, 364, Short.MAX_VALUE)
        );
        jPanel14Layout.setVerticalGroup(
            jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel14Layout.createSequentialGroup()
                .addComponent(jScrollPane8, javax.swing.GroupLayout.DEFAULT_SIZE, 155, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jtf_totalperf, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel6)
                    .addComponent(jLabel1)
                    .addComponent(jtf_totaldecf, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel8)
                    .addComponent(jtf_totalnof, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jtf_idselecf, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
        );

        jPanel16.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPanel16.border.title"))); // NOI18N
        jPanel16.setName("jPanel16"); // NOI18N

        jScrollPane9.setName("jScrollPane9"); // NOI18N

        jt_detalleprenomina4.setModel(this.jtable_modelo_detallenominanofope);
        jt_detalleprenomina4.setName("jt_detalleprenomina4"); // NOI18N
        jt_detalleprenomina4.setRowHeight(22);
        jt_detalleprenomina4.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jt_detalleprenomina4MouseClicked(evt);
                if(evt.getClickCount() >= 2)
                {
                    dioclickdethisnof(evt);
                }
            }
        });
        jt_detalleprenomina4.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                jt_detalleprenomina4PropertyChange(evt);
            }
        });
        jScrollPane9.setViewportView(jt_detalleprenomina4);

        jtf_salarionoftotal.setEditable(false);
        jtf_salarionoftotal.setFont(resourceMap.getFont("jtf_salarionoftotal.font")); // NOI18N
        jtf_salarionoftotal.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        jtf_salarionoftotal.setText(resourceMap.getString("jtf_salarionoftotal.text")); // NOI18N
        jtf_salarionoftotal.setToolTipText(resourceMap.getString("jtf_salarionoftotal.toolTipText")); // NOI18N
        jtf_salarionoftotal.setName("jtf_salarionoftotal"); // NOI18N

        jtf_salarionofixdia.setFont(resourceMap.getFont("jtf_salarionofixdia.font")); // NOI18N
        jtf_salarionofixdia.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        jtf_salarionofixdia.setText(resourceMap.getString("jtf_salarionofixdia.text")); // NOI18N
        jtf_salarionofixdia.setToolTipText(resourceMap.getString("jtf_salarionofixdia.toolTipText")); // NOI18N
        jtf_salarionofixdia.setName("jtf_salarionofixdia"); // NOI18N

        jLabel7.setText(resourceMap.getString("jLabel7.text")); // NOI18N
        jLabel7.setName("jLabel7"); // NOI18N

        jtf_totalpernof.setEditable(false);
        jtf_totalpernof.setFont(resourceMap.getFont("jtf_totalpernof.font")); // NOI18N
        jtf_totalpernof.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        jtf_totalpernof.setText(resourceMap.getString("jtf_totalpernof.text")); // NOI18N
        jtf_totalpernof.setToolTipText(resourceMap.getString("jtf_totalpernof.toolTipText")); // NOI18N
        jtf_totalpernof.setName("jtf_totalpernof"); // NOI18N

        jLabel4.setText(resourceMap.getString("jLabel4.text")); // NOI18N
        jLabel4.setName("jLabel4"); // NOI18N

        jtf_totaldecnof.setEditable(false);
        jtf_totaldecnof.setFont(resourceMap.getFont("jtf_totaldecnof.font")); // NOI18N
        jtf_totaldecnof.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        jtf_totaldecnof.setText(resourceMap.getString("jtf_totaldecnof.text")); // NOI18N
        jtf_totaldecnof.setToolTipText(resourceMap.getString("jtf_totaldecnof.toolTipText")); // NOI18N
        jtf_totaldecnof.setName("jtf_totaldecnof"); // NOI18N

        jtf_totalimportenof.setEditable(false);
        jtf_totalimportenof.setFont(resourceMap.getFont("jtf_totalimportenof.font")); // NOI18N
        jtf_totalimportenof.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        jtf_totalimportenof.setText(resourceMap.getString("jtf_totalimportenof.text")); // NOI18N
        jtf_totalimportenof.setToolTipText(resourceMap.getString("jtf_totalimportenof.toolTipText")); // NOI18N
        jtf_totalimportenof.setName("jtf_totalimportenof"); // NOI18N

        jLabel18.setText(resourceMap.getString("jLabel18.text")); // NOI18N
        jLabel18.setName("jLabel18"); // NOI18N

        jbtn_nominafcam.setIcon(resourceMap.getIcon("jbtn_nominafcam.icon")); // NOI18N
        jbtn_nominafcam.setText(resourceMap.getString("jbtn_nominafcam.text")); // NOI18N
        jbtn_nominafcam.setToolTipText(resourceMap.getString("jbtn_nominafcam.toolTipText")); // NOI18N
        jbtn_nominafcam.setName("jbtn_nominafcam"); // NOI18N
        jbtn_nominafcam.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtn_nominafcamActionPerformed(evt);
            }
        });

        jtf_idselecnof.setEditable(false);
        jtf_idselecnof.setFont(resourceMap.getFont("jtf_idselecnof.font")); // NOI18N
        jtf_idselecnof.setText(resourceMap.getString("jtf_idselecnof.text")); // NOI18N
        jtf_idselecnof.setName("jtf_idselecnof"); // NOI18N

        javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(jPanel16);
        jPanel16.setLayout(jPanel16Layout);
        jPanel16Layout.setHorizontalGroup(
            jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel16Layout.createSequentialGroup()
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel16Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel7)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtf_totalpernof, javax.swing.GroupLayout.PREFERRED_SIZE, 76, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel4))
                    .addComponent(jtf_salarionofixdia, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jtf_salarionoftotal, javax.swing.GroupLayout.DEFAULT_SIZE, 71, Short.MAX_VALUE)
                    .addComponent(jtf_totaldecnof, javax.swing.GroupLayout.DEFAULT_SIZE, 71, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel16Layout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addComponent(jbtn_nominafcam))
                    .addGroup(jPanel16Layout.createSequentialGroup()
                        .addComponent(jLabel18)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtf_totalimportenof, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtf_idselecnof, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
            .addComponent(jScrollPane9, javax.swing.GroupLayout.DEFAULT_SIZE, 364, Short.MAX_VALUE)
        );
        jPanel16Layout.setVerticalGroup(
            jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel16Layout.createSequentialGroup()
                .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jtf_totaldecnof, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel4)
                    .addComponent(jtf_totalpernof, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel7)
                    .addComponent(jtf_totalimportenof, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel18)
                    .addComponent(jtf_idselecnof, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jtf_salarionofixdia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jbtn_nominafcam)
                    .addComponent(jtf_salarionoftotal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
        );

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addComponent(jPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, 652, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jPanel16, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jPanel15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(jPanel14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );

        jTabbedPane1.addTab(resourceMap.getString("jPanel4.TabConstraints.tabTitle"), jPanel4); // NOI18N

        jPanel7.setName("jPanel7"); // NOI18N

        jPanel8.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPanel8.border.title"))); // NOI18N
        jPanel8.setName("jPanel8"); // NOI18N

        jScrollPane6.setName("jScrollPane6"); // NOI18N

        jt_nomina_peryded.setModel(this.jtable_modelo_nominaperodeduc);
        jt_nomina_peryded.setName("jt_nomina_peryded"); // NOI18N
        jt_nomina_peryded.setRowHeight(22);
        jt_nomina_peryded.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jt_nomina_perydedMouseClicked(evt);
                if(evt.getClickCount() >= 1)
                {
                    dioclickpodfactor(evt);
                }
            }
        });
        jScrollPane6.setViewportView(jt_nomina_peryded);

        jcmbx_idesquema.setName("jcmbx_idesquema"); // NOI18N

        jLabel26.setText(resourceMap.getString("jLabel26.text")); // NOI18N
        jLabel26.setName("jLabel26"); // NOI18N

        jtf_idpodesquema.setEditable(false);
        jtf_idpodesquema.setFont(resourceMap.getFont("jtf_idpodesquema.font")); // NOI18N
        jtf_idpodesquema.setText(resourceMap.getString("jtf_idpodesquema.text")); // NOI18N
        jtf_idpodesquema.setName("jtf_idpodesquema"); // NOI18N

        jtf_idpodesqdesc.setEditable(false);
        jtf_idpodesqdesc.setText(resourceMap.getString("jtf_idpodesqdesc.text")); // NOI18N
        jtf_idpodesqdesc.setName("jtf_idpodesqdesc"); // NOI18N

        jtf_idpodesquemafac.setFont(resourceMap.getFont("jtf_idpodesquemafac.font")); // NOI18N
        jtf_idpodesquemafac.setText(resourceMap.getString("jtf_idpodesquemafac.text")); // NOI18N
        jtf_idpodesquemafac.setName("jtf_idpodesquemafac"); // NOI18N

        jLabel27.setText(resourceMap.getString("jLabel27.text")); // NOI18N
        jLabel27.setName("jLabel27"); // NOI18N

        jbtn_aplicarcambio.setIcon(resourceMap.getIcon("jbtn_aplicarcambio.icon")); // NOI18N
        jbtn_aplicarcambio.setText(resourceMap.getString("jbtn_aplicarcambio.text")); // NOI18N
        jbtn_aplicarcambio.setName("jbtn_aplicarcambio"); // NOI18N
        jbtn_aplicarcambio.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtn_aplicarcambioActionPerformed(evt);
            }
        });

        jtf_operacionidias.setFont(resourceMap.getFont("jtf_operacionidias.font")); // NOI18N
        jtf_operacionidias.setText(resourceMap.getString("jtf_operacionidias.text")); // NOI18N
        jtf_operacionidias.setName("jtf_operacionidias"); // NOI18N
        jtf_operacionidias.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jtf_operacionidiasActionPerformed(evt);
            }
        });

        jLabel28.setText(resourceMap.getString("jLabel28.text")); // NOI18N
        jLabel28.setName("jLabel28"); // NOI18N

        jLabel29.setText(resourceMap.getString("jLabel29.text")); // NOI18N
        jLabel29.setName("jLabel29"); // NOI18N

        jtf_operacioniimpor.setFont(resourceMap.getFont("jtf_operacioniimpor.font")); // NOI18N
        jtf_operacioniimpor.setText(resourceMap.getString("jtf_operacioniimpor.text")); // NOI18N
        jtf_operacioniimpor.setName("jtf_operacioniimpor"); // NOI18N
        jtf_operacioniimpor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jtf_operacioniimporActionPerformed(evt);
            }
        });

        jLabel30.setText(resourceMap.getString("jLabel30.text")); // NOI18N
        jLabel30.setName("jLabel30"); // NOI18N

        jtf_idpodesquemasal.setFont(resourceMap.getFont("jtf_idpodesquemasal.font")); // NOI18N
        jtf_idpodesquemasal.setText(resourceMap.getString("jtf_idpodesquemasal.text")); // NOI18N
        jtf_idpodesquemasal.setName("jtf_idpodesquemasal"); // NOI18N
        jtf_idpodesquemasal.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jtf_idpodesquemasalActionPerformed(evt);
            }
        });

        jbtn_aplicarcambio1.setIcon(resourceMap.getIcon("jbtn_aplicarcambio1.icon")); // NOI18N
        jbtn_aplicarcambio1.setText(resourceMap.getString("jbtn_aplicarcambio1.text")); // NOI18N
        jbtn_aplicarcambio1.setName("jbtn_aplicarcambio1"); // NOI18N
        jbtn_aplicarcambio1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtn_aplicarcambio1ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
        jPanel8.setLayout(jPanel8Layout);
        jPanel8Layout.setHorizontalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane6, javax.swing.GroupLayout.DEFAULT_SIZE, 463, Short.MAX_VALUE)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addComponent(jLabel26)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jcmbx_idesquema, javax.swing.GroupLayout.PREFERRED_SIZE, 182, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addComponent(jtf_idpodesquema, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(10, 10, 10)
                .addComponent(jtf_idpodesqdesc, javax.swing.GroupLayout.PREFERRED_SIZE, 198, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(41, 41, 41)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel8Layout.createSequentialGroup()
                        .addComponent(jLabel27)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jtf_idpodesquemafac, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jbtn_aplicarcambio))
                .addGap(11, 11, 11))
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanel8Layout.createSequentialGroup()
                        .addComponent(jLabel30)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jtf_idpodesquemasal, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel8Layout.createSequentialGroup()
                        .addComponent(jLabel28)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtf_operacionidias, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel8Layout.createSequentialGroup()
                        .addComponent(jLabel29)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jtf_operacioniimpor, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jbtn_aplicarcambio1))
                .addGap(153, 153, 153))
        );
        jPanel8Layout.setVerticalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 188, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(11, 11, 11)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel26)
                    .addComponent(jcmbx_idesquema, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jtf_operacionidias, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel28)
                    .addComponent(jLabel29)
                    .addComponent(jtf_operacioniimpor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jtf_idpodesquemasal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel30)
                    .addComponent(jbtn_aplicarcambio1))
                .addGap(18, 18, 18)
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jtf_idpodesquema, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jtf_idpodesqdesc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jtf_idpodesquemafac, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel27))
                .addGap(18, 18, 18)
                .addComponent(jbtn_aplicarcambio)
                .addContainerGap(59, Short.MAX_VALUE))
        );

        jPanel13.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPanel13.border.title"))); // NOI18N
        jPanel13.setName("jPanel13"); // NOI18N

        jScrollPane10.setName("jScrollPane10"); // NOI18N

        jt_detalleprenominaxempleaf.setModel(this.jtable_modelo_detallenominafope_int);
        jt_detalleprenominaxempleaf.setName("jt_detalleprenominaxempleaf"); // NOI18N
        jt_detalleprenominaxempleaf.setRowHeight(22);
        jt_detalleprenominaxempleaf.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                jt_detalleprenominaxempleafPropertyChange(evt);
            }
        });
        jScrollPane10.setViewportView(jt_detalleprenominaxempleaf);

        jScrollPane11.setName("jScrollPane11"); // NOI18N

        jt_detalleprenominaxempleanof.setModel(this.jtable_modelo_detallenominanofope_int);
        jt_detalleprenominaxempleanof.setName("jt_detalleprenominaxempleanof"); // NOI18N
        jt_detalleprenominaxempleanof.setRowHeight(22);
        jt_detalleprenominaxempleanof.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                jt_detalleprenominaxempleanofPropertyChange(evt);
            }
        });
        jScrollPane11.setViewportView(jt_detalleprenominaxempleanof);

        javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13);
        jPanel13.setLayout(jPanel13Layout);
        jPanel13Layout.setHorizontalGroup(
            jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane11, javax.swing.GroupLayout.DEFAULT_SIZE, 521, Short.MAX_VALUE)
            .addComponent(jScrollPane10, javax.swing.GroupLayout.DEFAULT_SIZE, 521, Short.MAX_VALUE)
        );
        jPanel13Layout.setVerticalGroup(
            jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel13Layout.createSequentialGroup()
                .addComponent(jScrollPane10, javax.swing.GroupLayout.PREFERRED_SIZE, 211, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane11, javax.swing.GroupLayout.DEFAULT_SIZE, 208, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
        jPanel7.setLayout(jPanel7Layout);
        jPanel7Layout.setHorizontalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addGap(6, 6, 6)
                .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel7Layout.setVerticalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel7Layout.createSequentialGroup()
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jPanel13, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );

        jTabbedPane1.addTab(resourceMap.getString("jPanel7.TabConstraints.tabTitle"), jPanel7); // NOI18N

        jPanel11.setName("jPanel11"); // NOI18N

        jLabel9.setText(resourceMap.getString("jLabel9.text")); // NOI18N
        jLabel9.setName("jLabel9"); // NOI18N

        jtf_rzdescripcion.setText(resourceMap.getString("jtf_rzdescripcion.text")); // NOI18N
        jtf_rzdescripcion.setName("jtf_rzdescripcion"); // NOI18N

        jLabel10.setText(resourceMap.getString("jLabel10.text")); // NOI18N
        jLabel10.setName("jLabel10"); // NOI18N

        jtf_rzrazon.setName("jtf_rzrazon"); // NOI18N

        jLabel11.setText(resourceMap.getString("jLabel11.text")); // NOI18N
        jLabel11.setName("jLabel11"); // NOI18N

        jtf_rzpatron.setName("jtf_rzpatron"); // NOI18N

        jLabel16.setText(resourceMap.getString("jLabel16.text")); // NOI18N
        jLabel16.setName("jLabel16"); // NOI18N

        jtf_periodo.setName("jtf_periodo"); // NOI18N

        jPanel12.setName("jPanel12"); // NOI18N

        jScrollPane14.setName("jScrollPane14"); // NOI18N

        jt_detalleprenominapodf2.setModel(this.jtable_modelo_detallenominanof);
        jt_detalleprenominapodf2.setName("jt_detalleprenominapodf2"); // NOI18N
        jt_detalleprenominapodf2.setRowHeight(22);
        jt_detalleprenominapodf2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jt_detalleprenominapodf2MouseClicked(evt);
                if(evt.getClickCount() >= 1)
                {
                    dioclickprintnof(evt);
                }
            }
        });
        jScrollPane14.setViewportView(jt_detalleprenominapodf2);

        jLabel14.setText(resourceMap.getString("jLabel14.text")); // NOI18N
        jLabel14.setName("jLabel14"); // NOI18N

        jtf_totalnofd2.setEditable(false);
        jtf_totalnofd2.setFont(resourceMap.getFont("jtf_totalnofd2.font")); // NOI18N
        jtf_totalnofd2.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        jtf_totalnofd2.setName("jtf_totalnofd2"); // NOI18N

        jLabel15.setText(resourceMap.getString("jLabel15.text")); // NOI18N
        jLabel15.setName("jLabel15"); // NOI18N

        jtf_totald2.setEditable(false);
        jtf_totald2.setFont(resourceMap.getFont("jtf_totald2.font")); // NOI18N
        jtf_totald2.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        jtf_totald2.setName("jtf_totald2"); // NOI18N

        jButton4.setIcon(resourceMap.getIcon("jButton4.icon")); // NOI18N
        jButton4.setText(resourceMap.getString("jButton4.text")); // NOI18N
        jButton4.setName("jButton4"); // NOI18N
        jButton4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton4ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);
        jPanel12.setLayout(jPanel12Layout);
        jPanel12Layout.setHorizontalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel12Layout.createSequentialGroup()
                .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jtf_totalnofd2, javax.swing.GroupLayout.DEFAULT_SIZE, 48, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel15)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jtf_totald2, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton4)
                .addGap(22, 22, 22))
            .addComponent(jScrollPane14, javax.swing.GroupLayout.DEFAULT_SIZE, 475, Short.MAX_VALUE)
        );
        jPanel12Layout.setVerticalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel12Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane14, javax.swing.GroupLayout.DEFAULT_SIZE, 342, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jtf_totalnofd2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel14)
                    .addComponent(jLabel15)
                    .addComponent(jtf_totald2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton4))
                .addContainerGap())
        );

        jPanel19.setName("jPanel19"); // NOI18N

        jScrollPane12.setName("jScrollPane12"); // NOI18N

        jt_detalleprenominapodf1.setModel(this.jtable_modelo_detallenominaf);
        jt_detalleprenominapodf1.setName("jt_detalleprenominapodf1"); // NOI18N
        jt_detalleprenominapodf1.setRowHeight(22);
        jt_detalleprenominapodf1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jt_detalleprenominapodf1MouseClicked(evt);
                if(evt.getClickCount() >= 1)
                {
                    dioclickprint(evt);
                }
            }
        });
        jScrollPane12.setViewportView(jt_detalleprenominapodf1);

        jButton3.setIcon(resourceMap.getIcon("jButton3.icon")); // NOI18N
        jButton3.setText(resourceMap.getString("jButton3.text")); // NOI18N
        jButton3.setName("jButton3"); // NOI18N
        jButton3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton3ActionPerformed(evt);
            }
        });

        jLabel13.setText(resourceMap.getString("jLabel13.text")); // NOI18N
        jLabel13.setName("jLabel13"); // NOI18N

        jtf_totalf2.setEditable(false);
        jtf_totalf2.setFont(resourceMap.getFont("jtf_totalf2.font")); // NOI18N
        jtf_totalf2.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        jtf_totalf2.setName("jtf_totalf2"); // NOI18N

        jbtn_impresionanterior.setIcon(resourceMap.getIcon("jbtn_impresionanterior.icon")); // NOI18N
        jbtn_impresionanterior.setText(resourceMap.getString("jbtn_impresionanterior.text")); // NOI18N
        jbtn_impresionanterior.setToolTipText(resourceMap.getString("jbtn_impresionanterior.toolTipText")); // NOI18N
        jbtn_impresionanterior.setName("jbtn_impresionanterior"); // NOI18N
        jbtn_impresionanterior.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtn_impresionanteriorActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel19Layout = new javax.swing.GroupLayout(jPanel19);
        jPanel19.setLayout(jPanel19Layout);
        jPanel19Layout.setHorizontalGroup(
            jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel19Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jbtn_impresionanterior)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 14, Short.MAX_VALUE)
                .addComponent(jButton3)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jtf_totalf2, javax.swing.GroupLayout.PREFERRED_SIZE, 164, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(31, 31, 31))
            .addComponent(jScrollPane12, javax.swing.GroupLayout.DEFAULT_SIZE, 549, Short.MAX_VALUE)
        );
        jPanel19Layout.setVerticalGroup(
            jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel19Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane12, javax.swing.GroupLayout.DEFAULT_SIZE, 342, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jtf_totalf2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel13)
                    .addComponent(jButton3)
                    .addComponent(jbtn_impresionanterior))
                .addContainerGap())
        );

        jLabel25.setText(resourceMap.getString("jLabel25.text")); // NOI18N
        jLabel25.setName("jLabel25"); // NOI18N

        jtf_rzpatrondir.setName("jtf_rzpatrondir"); // NOI18N

        javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);
        jPanel11.setLayout(jPanel11Layout);
        jPanel11Layout.setHorizontalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel11Layout.createSequentialGroup()
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel11Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel25)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtf_rzpatrondir, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(8, 8, 8)
                        .addComponent(jLabel9)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtf_rzdescripcion, javax.swing.GroupLayout.PREFERRED_SIZE, 284, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel10)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtf_rzrazon, javax.swing.GroupLayout.PREFERRED_SIZE, 239, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel11Layout.createSequentialGroup()
                        .addComponent(jLabel16)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtf_periodo, javax.swing.GroupLayout.PREFERRED_SIZE, 307, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(26, 26, 26)
                        .addComponent(jLabel11)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtf_rzpatron, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel11Layout.createSequentialGroup()
                        .addComponent(jPanel19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel12, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanel11Layout.setVerticalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel11Layout.createSequentialGroup()
                .addGap(14, 14, 14)
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel16)
                    .addComponent(jtf_periodo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel11)
                    .addComponent(jtf_rzpatron, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel9)
                    .addComponent(jtf_rzdescripcion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel10)
                    .addComponent(jtf_rzrazon, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel25)
                    .addComponent(jtf_rzpatrondir, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jPanel12, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel19, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
        );

        jTabbedPane1.addTab(resourceMap.getString("jPanel11.TabConstraints.tabTitle"), jPanel11); // NOI18N

        jPanel20.setName("jPanel20"); // NOI18N

        jPanel21.setName("jPanel21"); // NOI18N

        jcmbox_idperiodofin.setToolTipText(resourceMap.getString("jcmbox_idperiodofin.toolTipText")); // NOI18N
        jcmbox_idperiodofin.setName("jcmbox_idperiodofin"); // NOI18N
        jcmbox_idperiodofin.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jcmbox_idperiodofinActionPerformed(evt);
            }
        });

        jLabel23.setText(resourceMap.getString("jLabel23.text")); // NOI18N
        jLabel23.setName("jLabel23"); // NOI18N

        jcmbox_idperiodoini.setToolTipText(resourceMap.getString("jcmbox_idperiodoini.toolTipText")); // NOI18N
        jcmbox_idperiodoini.setName("jcmbox_idperiodoini"); // NOI18N
        jcmbox_idperiodoini.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jcmbox_idperiodoiniActionPerformed(evt);
            }
        });

        jLabel22.setText(resourceMap.getString("jLabel22.text")); // NOI18N
        jLabel22.setName("jLabel22"); // NOI18N

        jScrollPane15.setName("jScrollPane15"); // NOI18N

        jt_detalleprenominapodf3.setModel(this.jtable_modelo_podhistorial);
        jt_detalleprenominapodf3.setName("jt_detalleprenominapodf3"); // NOI18N
        jt_detalleprenominapodf3.setRowHeight(22);
        jt_detalleprenominapodf1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jt_detalleprenominapodf1MouseClicked(evt);
                if(evt.getClickCount() >= 1)
                {
                    dioclickprint(evt);
                }
            }
        });
        jScrollPane15.setViewportView(jt_detalleprenominapodf3);

        jLabel24.setText(resourceMap.getString("jLabel24.text")); // NOI18N
        jLabel24.setName("jLabel24"); // NOI18N

        jButton5.setIcon(resourceMap.getIcon("jButton5.icon")); // NOI18N
        jButton5.setText(resourceMap.getString("jButton5.text")); // NOI18N
        jButton5.setName("jButton5"); // NOI18N
        jButton5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton5ActionPerformed(evt);
            }
        });

        jScrollPane16.setName("jScrollPane16"); // NOI18N

        jt_detallepodpatron.setModel(this.jtable_modelo_podhistorial_det);
        jt_detallepodpatron.setName("jt_detallepodpatron"); // NOI18N
        jt_detallepodpatron.setRowHeight(22);
        jt_detallepodpatron.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jt_detallepodpatronMouseClicked(evt);
                if(evt.getClickCount() >= 1)
                {
                    dioclickpoddet(evt);
                }
            }
        });
        jScrollPane16.setViewportView(jt_detallepodpatron);

        jtf_idperini.setEditable(false);
        jtf_idperini.setFont(resourceMap.getFont("jtf_idperini.font")); // NOI18N
        jtf_idperini.setText(resourceMap.getString("jtf_idperini.text")); // NOI18N
        jtf_idperini.setName("jtf_idperini"); // NOI18N

        jtf_idperfin.setEditable(false);
        jtf_idperfin.setFont(resourceMap.getFont("jtf_idperfin.font")); // NOI18N
        jtf_idperfin.setText(resourceMap.getString("jtf_idperfin.text")); // NOI18N
        jtf_idperfin.setName("jtf_idperfin"); // NOI18N

        jPanel23.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPanel23.border.title"))); // NOI18N
        jPanel23.setName("jPanel23"); // NOI18N

        jLabel31.setText(resourceMap.getString("jLabel31.text")); // NOI18N
        jLabel31.setName("jLabel31"); // NOI18N

        jdc_fechainicialnomina.setToolTipText(resourceMap.getString("jdc_fechainicialnomina.toolTipText")); // NOI18N
        jdc_fechainicialnomina.setDateFormatString(resourceMap.getString("jdc_fechainicialnomina.dateFormatString")); // NOI18N
        jdc_fechainicialnomina.setName("jdc_fechainicialnomina"); // NOI18N

        jLabel32.setText(resourceMap.getString("jLabel32.text")); // NOI18N
        jLabel32.setName("jLabel32"); // NOI18N

        jdc_fechafinalnomina.setToolTipText(resourceMap.getString("jdc_fechafinalnomina.toolTipText")); // NOI18N
        jdc_fechafinalnomina.setDateFormatString(resourceMap.getString("jdc_fechafinalnomina.dateFormatString")); // NOI18N
        jdc_fechafinalnomina.setMaxSelectableDate(new java.util.Date(253370790102000L));
        jdc_fechafinalnomina.setName("jdc_fechafinalnomina"); // NOI18N

        jLabel33.setText(resourceMap.getString("jLabel33.text")); // NOI18N
        jLabel33.setName("jLabel33"); // NOI18N

        jLabel34.setText(resourceMap.getString("jLabel34.text")); // NOI18N
        jLabel34.setName("jLabel34"); // NOI18N

        jdc_fechafinalinsidencia.setToolTipText(resourceMap.getString("jdc_fechafinalinsidencia.toolTipText")); // NOI18N
        jdc_fechafinalinsidencia.setDateFormatString(resourceMap.getString("jdc_fechafinalinsidencia.dateFormatString")); // NOI18N
        jdc_fechafinalinsidencia.setMaxSelectableDate(new java.util.Date(253370790102000L));
        jdc_fechafinalinsidencia.setName("jdc_fechafinalinsidencia"); // NOI18N

        jdc_fechainicialincidencia.setToolTipText(resourceMap.getString("jdc_fechainicialincidencia.toolTipText")); // NOI18N
        jdc_fechainicialincidencia.setDateFormatString(resourceMap.getString("jdc_fechainicialincidencia.dateFormatString")); // NOI18N
        jdc_fechainicialincidencia.setName("jdc_fechainicialincidencia"); // NOI18N

        jLabel35.setText(resourceMap.getString("jLabel35.text")); // NOI18N
        jLabel35.setName("jLabel35"); // NOI18N

        jLabel36.setText(resourceMap.getString("jLabel36.text")); // NOI18N
        jLabel36.setName("jLabel36"); // NOI18N

        jtf_descripperiodo.setFont(resourceMap.getFont("jtf_descripperiodo.font")); // NOI18N
        jtf_descripperiodo.setText(resourceMap.getString("jtf_descripperiodo.text")); // NOI18N
        jtf_descripperiodo.setToolTipText(resourceMap.getString("jtf_descripperiodo.toolTipText")); // NOI18N
        jtf_descripperiodo.setName("jtf_descripperiodo"); // NOI18N

        jLabel37.setText(resourceMap.getString("jLabel37.text")); // NOI18N
        jLabel37.setName("jLabel37"); // NOI18N

        jLabel38.setText(resourceMap.getString("jLabel38.text")); // NOI18N
        jLabel38.setName("jLabel38"); // NOI18N

        jLabel39.setText(resourceMap.getString("jLabel39.text")); // NOI18N
        jLabel39.setName("jLabel39"); // NOI18N

        jcmbox_idperiodotipo.setToolTipText(resourceMap.getString("jcmbox_idperiodotipo.toolTipText")); // NOI18N
        jcmbox_idperiodotipo.setName("jcmbox_idperiodotipo"); // NOI18N
        jcmbox_idperiodotipo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jcmbox_idperiodotipoActionPerformed(evt);
            }
        });

        jLabel40.setText(resourceMap.getString("jLabel40.text")); // NOI18N
        jLabel40.setName("jLabel40"); // NOI18N

        jtf_obserperiodoin.setFont(resourceMap.getFont("jtf_obserperiodoin.font")); // NOI18N
        jtf_obserperiodoin.setText(resourceMap.getString("jtf_obserperiodoin.text")); // NOI18N
        jtf_obserperiodoin.setToolTipText(resourceMap.getString("jtf_obserperiodoin.toolTipText")); // NOI18N
        jtf_obserperiodoin.setName("jtf_obserperiodoin"); // NOI18N

        jLabel41.setText(resourceMap.getString("jLabel41.text")); // NOI18N
        jLabel41.setName("jLabel41"); // NOI18N

        jButton6.setIcon(resourceMap.getIcon("jButton6.icon")); // NOI18N
        jButton6.setText(resourceMap.getString("jButton6.text")); // NOI18N
        jButton6.setName("jButton6"); // NOI18N
        jButton6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton6ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel23Layout = new javax.swing.GroupLayout(jPanel23);
        jPanel23.setLayout(jPanel23Layout);
        jPanel23Layout.setHorizontalGroup(
            jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel23Layout.createSequentialGroup()
                .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel23Layout.createSequentialGroup()
                        .addComponent(jLabel37)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jtf_descripperiodo, javax.swing.GroupLayout.DEFAULT_SIZE, 293, Short.MAX_VALUE))
                    .addGroup(jPanel23Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel36)
                            .addGroup(jPanel23Layout.createSequentialGroup()
                                .addGap(10, 10, 10)
                                .addComponent(jLabel35)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel23Layout.createSequentialGroup()
                                .addComponent(jLabel33)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jdc_fechainicialincidencia, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel23Layout.createSequentialGroup()
                                .addGap(16, 16, 16)
                                .addComponent(jLabel31)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jdc_fechainicialnomina, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addGroup(jPanel23Layout.createSequentialGroup()
                        .addComponent(jLabel41, javax.swing.GroupLayout.DEFAULT_SIZE, 111, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jtf_obserperiodoin, javax.swing.GroupLayout.PREFERRED_SIZE, 283, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel23Layout.createSequentialGroup()
                        .addGap(30, 30, 30)
                        .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel39, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel38, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanel23Layout.createSequentialGroup()
                        .addGap(18, 18, 18)
                        .addComponent(jLabel40, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel23Layout.createSequentialGroup()
                        .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel23Layout.createSequentialGroup()
                                .addComponent(jLabel34, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jdc_fechafinalinsidencia, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel23Layout.createSequentialGroup()
                                .addComponent(jLabel32, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jdc_fechafinalnomina, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel23Layout.createSequentialGroup()
                                .addGap(10, 10, 10)
                                .addComponent(jButton6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                        .addGap(24, 24, 24))
                    .addComponent(jcmbox_idperiodotipo, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 183, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(367, 367, 367))
        );
        jPanel23Layout.setVerticalGroup(
            jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel23Layout.createSequentialGroup()
                .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel23Layout.createSequentialGroup()
                        .addGap(3, 3, 3)
                        .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jtf_descripperiodo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel37))
                        .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel23Layout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jdc_fechainicialnomina, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                        .addComponent(jLabel31)
                                        .addComponent(jLabel36)))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                        .addComponent(jLabel33)
                                        .addComponent(jLabel35))
                                    .addComponent(jdc_fechainicialincidencia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGroup(jPanel23Layout.createSequentialGroup()
                                .addGap(36, 36, 36)
                                .addComponent(jLabel39, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel23Layout.createSequentialGroup()
                        .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jcmbox_idperiodotipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel40, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jLabel32, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLabel38, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(jdc_fechafinalnomina, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jdc_fechafinalinsidencia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel34, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jtf_obserperiodoin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel41)
                    .addComponent(jButton6)))
        );

        javax.swing.GroupLayout jPanel21Layout = new javax.swing.GroupLayout(jPanel21);
        jPanel21.setLayout(jPanel21Layout);
        jPanel21Layout.setHorizontalGroup(
            jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel21Layout.createSequentialGroup()
                .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel21Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel22)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jcmbox_idperiodoini, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jLabel24)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel23)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jcmbox_idperiodofin, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jButton5)
                        .addGap(34, 34, 34)
                        .addComponent(jtf_idperini, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jtf_idperfin, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel21Layout.createSequentialGroup()
                            .addComponent(jScrollPane16, javax.swing.GroupLayout.PREFERRED_SIZE, 482, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jScrollPane15))
                        .addComponent(jPanel23, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(148, 148, 148))
        );
        jPanel21Layout.setVerticalGroup(
            jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel21Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel22)
                    .addComponent(jcmbox_idperiodoini, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel24)
                    .addComponent(jLabel23)
                    .addComponent(jcmbox_idperiodofin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton5)
                    .addComponent(jtf_idperini, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jtf_idperfin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane15, 0, 0, Short.MAX_VALUE)
                    .addComponent(jScrollPane16, javax.swing.GroupLayout.DEFAULT_SIZE, 264, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel23, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        javax.swing.GroupLayout jPanel20Layout = new javax.swing.GroupLayout(jPanel20);
        jPanel20.setLayout(jPanel20Layout);
        jPanel20Layout.setHorizontalGroup(
            jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel20Layout.createSequentialGroup()
                .addComponent(jPanel21, javax.swing.GroupLayout.PREFERRED_SIZE, 1037, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel20Layout.setVerticalGroup(
            jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        jTabbedPane1.addTab(resourceMap.getString("jPanel20.TabConstraints.tabTitle"), jPanel20); // NOI18N

        jPanel25.setName("jPanel25"); // NOI18N

        jPanel26.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));
        jPanel26.setName("jPanel26"); // NOI18N

        jScrollPane20.setName("jScrollPane20"); // NOI18N

        jt_detalleprenominapodf4.setModel(this.jtable_modelo_detallenominap);
        jt_detalleprenominapodf4.setName("jt_detalleprenominapodf4"); // NOI18N
        jt_detalleprenominapodf4.setRowHeight(22);
        jt_detalleprenominapodf4.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jt_detalleprenominapodf4MouseClicked(evt);
                if(evt.getClickCount() >= 1)
                {
                    dioclickperpla(evt);
                }
            }
        });
        jScrollPane20.setViewportView(jt_detalleprenominapodf4);

        jPanel27.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPanel27.border.title"))); // NOI18N
        jPanel27.setName("jPanel27"); // NOI18N

        jButton7.setText(resourceMap.getString("jButton7.text")); // NOI18N
        jButton7.setName("jButton7"); // NOI18N
        jButton7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton7ActionPerformed(evt);
            }
        });

        jtf_plazaidemp.setEditable(false);
        jtf_plazaidemp.setFont(resourceMap.getFont("jtf_plazaidemp.font")); // NOI18N
        jtf_plazaidemp.setText(resourceMap.getString("jtf_plazaidemp.text")); // NOI18N
        jtf_plazaidemp.setName("jtf_plazaidemp"); // NOI18N

        jLabel42.setText(resourceMap.getString("jLabel42.text")); // NOI18N
        jLabel42.setName("jLabel42"); // NOI18N

        jtf_plazaidemp1.setEditable(false);
        jtf_plazaidemp1.setFont(resourceMap.getFont("jtf_plazaidemp1.font")); // NOI18N
        jtf_plazaidemp1.setName("jtf_plazaidemp1"); // NOI18N

        jtf_plazaidplaza.setEditable(false);
        jtf_plazaidplaza.setFont(resourceMap.getFont("jtf_plazaidplaza.font")); // NOI18N
        jtf_plazaidplaza.setName("jtf_plazaidplaza"); // NOI18N

        jLabel70.setText(resourceMap.getString("jLabel70.text")); // NOI18N
        jLabel70.setName("jLabel70"); // NOI18N

        jcmbx_idrazonclasif2.setName("jcmbx_idrazonclasif2"); // NOI18N

        javax.swing.GroupLayout jPanel27Layout = new javax.swing.GroupLayout(jPanel27);
        jPanel27.setLayout(jPanel27Layout);
        jPanel27Layout.setHorizontalGroup(
            jPanel27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel27Layout.createSequentialGroup()
                .addComponent(jLabel42)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jtf_plazaidemp, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jtf_plazaidemp1, javax.swing.GroupLayout.PREFERRED_SIZE, 257, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jtf_plazaidplaza, javax.swing.GroupLayout.PREFERRED_SIZE, 72, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel70)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jcmbx_idrazonclasif2, javax.swing.GroupLayout.PREFERRED_SIZE, 325, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 107, Short.MAX_VALUE)
                .addComponent(jButton7)
                .addGap(31, 31, 31))
        );
        jPanel27Layout.setVerticalGroup(
            jPanel27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel27Layout.createSequentialGroup()
                .addGap(11, 11, 11)
                .addGroup(jPanel27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jtf_plazaidemp, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel42)
                    .addComponent(jtf_plazaidemp1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jtf_plazaidplaza, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jcmbx_idrazonclasif2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel70)
                    .addComponent(jButton7))
                .addContainerGap(23, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel26Layout = new javax.swing.GroupLayout(jPanel26);
        jPanel26.setLayout(jPanel26Layout);
        jPanel26Layout.setHorizontalGroup(
            jPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane20, javax.swing.GroupLayout.DEFAULT_SIZE, 1038, Short.MAX_VALUE)
            .addComponent(jPanel27, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        jPanel26Layout.setVerticalGroup(
            jPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel26Layout.createSequentialGroup()
                .addComponent(jScrollPane20, javax.swing.GroupLayout.DEFAULT_SIZE, 359, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel27, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        javax.swing.GroupLayout jPanel25Layout = new javax.swing.GroupLayout(jPanel25);
        jPanel25.setLayout(jPanel25Layout);
        jPanel25Layout.setHorizontalGroup(
            jPanel25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 1040, Short.MAX_VALUE)
            .addGroup(jPanel25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jPanel26, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel25Layout.setVerticalGroup(
            jPanel25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 466, Short.MAX_VALUE)
            .addGroup(jPanel25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel25Layout.createSequentialGroup()
                    .addGap(5, 5, 5)
                    .addComponent(jPanel26, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGap(6, 6, 6)))
        );

        jTabbedPane1.addTab(resourceMap.getString("jPanel25.TabConstraints.tabTitle"), jPanel25); // NOI18N

        jPanel10.setName("jPanel10"); // NOI18N

        jTabbedPane2.setName("jTabbedPane2"); // NOI18N
        jTabbedPane2.addChangeListener(new javax.swing.event.ChangeListener() {
            public void stateChanged(javax.swing.event.ChangeEvent evt) {
                jTabbedPane2StateChanged(evt);
            }
        });

        jPanel5.setName("jPanel5"); // NOI18N

        jScrollPane1.setName("jScrollPane1"); // NOI18N

        jt_catprenominas.setModel(this.jtable_modelo_prenomina);
        jt_catprenominas.setName("jt_catprenominas"); // NOI18N
        jt_catprenominas.setRowHeight(22);
        jt_catprenominas.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jt_catprenominasMouseClicked(evt);
                if(evt.getClickCount() >= 1)
                {
                    dioclickpre(evt);
                }
                if(evt.getClickCount() >= 2)
                {
                    dioclickpreedit(evt);
                }
            }
        });
        jScrollPane1.setViewportView(jt_catprenominas);

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 606, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 169, Short.MAX_VALUE)
        );

        jTabbedPane2.addTab(resourceMap.getString("jPanel5.TabConstraints.tabTitle"), jPanel5); // NOI18N

        jPanel6.setName("jPanel6"); // NOI18N

        jScrollPane4.setName("jScrollPane4"); // NOI18N

        jt_catpatrones.setModel(this.jtable_modelo_patrones);
        jt_catpatrones.setName("jt_catpatrones"); // NOI18N
        jt_catpatrones.setRowHeight(22);
        jt_catpatrones.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jt_catpatronesMouseClicked(evt);
                if(evt.getClickCount() >= 1)
                {
                    dioclickpat(evt);
                }
            }
        });
        jScrollPane4.setViewportView(jt_catpatrones);

        javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 611, Short.MAX_VALUE)
        );
        jPanel6Layout.setVerticalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 169, Short.MAX_VALUE)
        );

        jTabbedPane2.addTab(resourceMap.getString("jPanel6.TabConstraints.tabTitle"), jPanel6); // NOI18N

        jPanel24.setName("jPanel24"); // NOI18N

        jScrollPane19.setName("jScrollPane19"); // NOI18N

        jt_catpatrones1.setModel(this.jtable_modelo_patrones_areas);
        jt_catpatrones1.setName("jt_catpatrones1"); // NOI18N
        jt_catpatrones1.setRowHeight(22);
        jScrollPane19.setViewportView(jt_catpatrones1);

        javax.swing.GroupLayout jPanel24Layout = new javax.swing.GroupLayout(jPanel24);
        jPanel24.setLayout(jPanel24Layout);
        jPanel24Layout.setHorizontalGroup(
            jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane19, javax.swing.GroupLayout.DEFAULT_SIZE, 611, Short.MAX_VALUE)
        );
        jPanel24Layout.setVerticalGroup(
            jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane19, javax.swing.GroupLayout.DEFAULT_SIZE, 169, Short.MAX_VALUE)
        );

        jTabbedPane2.addTab(resourceMap.getString("jPanel24.TabConstraints.tabTitle"), jPanel24); // NOI18N

        javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);
        jPanel10.setLayout(jPanel10Layout);
        jPanel10Layout.setHorizontalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jTabbedPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 616, Short.MAX_VALUE)
        );
        jPanel10Layout.setVerticalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jTabbedPane2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 197, Short.MAX_VALUE)
        );

        jMenuBar1.setName("jMenuBar1"); // NOI18N

        jMenu1.setText(resourceMap.getString("jMenu1.text")); // NOI18N
        jMenu1.setName("jMenu1"); // NOI18N

        jmni_catalogoempleados.setText(resourceMap.getString("jmni_catalogoempleados.text")); // NOI18N
        jmni_catalogoempleados.setName("jmni_catalogoempleados"); // NOI18N
        jMenu1.add(jmni_catalogoempleados);

        jmni_perderdatosnog.setText(resourceMap.getString("jmni_perderdatosnog.text")); // NOI18N
        jmni_perderdatosnog.setName("jmni_perderdatosnog"); // NOI18N
        jmni_perderdatosnog.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmni_perderdatosnogActionPerformed(evt);
            }
        });
        jMenu1.add(jmni_perderdatosnog);

        jmni_salir.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.ALT_MASK));
        jmni_salir.setIcon(resourceMap.getIcon("jmni_salir.icon")); // NOI18N
        jmni_salir.setText(resourceMap.getString("jmni_salir.text")); // NOI18N
        jmni_salir.setName("jmni_salir"); // NOI18N
        jmni_salir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmni_salirActionPerformed(evt);
            }
        });
        jMenu1.add(jmni_salir);

        jMenuBar1.add(jMenu1);

        jMenu2.setText(resourceMap.getString("jMenu2.text")); // NOI18N
        jMenu2.setName("jMenu2"); // NOI18N

        jMenuItem1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_ESCAPE, 0));
        jMenuItem1.setText(resourceMap.getString("jMenuItem1.text")); // NOI18N
        jMenuItem1.setName("jMenuItem1"); // NOI18N
        jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem1ActionPerformed(evt);
            }
        });
        jMenu2.add(jMenuItem1);

        jmni_buscar.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_B, java.awt.event.InputEvent.CTRL_MASK));
        jmni_buscar.setIcon(resourceMap.getIcon("jmni_buscar.icon")); // NOI18N
        jmni_buscar.setText(resourceMap.getString("jmni_buscar.text")); // NOI18N
        jmni_buscar.setName("jmni_buscar"); // NOI18N
        jmni_buscar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmni_buscarActionPerformed(evt);
            }
        });
        jMenu2.add(jmni_buscar);

        jmni_agregaidempleado.setText(resourceMap.getString("jmni_agregaidempleado.text")); // NOI18N
        jmni_agregaidempleado.setName("jmni_agregaidempleado"); // NOI18N
        jmni_agregaidempleado.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmni_agregaidempleadoActionPerformed(evt);
            }
        });
        jMenu2.add(jmni_agregaidempleado);

        jMenuItem2.setText(resourceMap.getString("jMenuItem2.text")); // NOI18N
        jMenuItem2.setName("jMenuItem2"); // NOI18N
        jMenuItem2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem2ActionPerformed(evt);
            }
        });
        jMenu2.add(jMenuItem2);

        jmni_actualizar.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F5, 0));
        jmni_actualizar.setText(resourceMap.getString("jmni_actualizar.text")); // NOI18N
        jmni_actualizar.setName("jmni_actualizar"); // NOI18N
        jmni_actualizar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmni_actualizarActionPerformed(evt);
            }
        });
        jMenu2.add(jmni_actualizar);

        jMenuItem3.setText(resourceMap.getString("jMenuItem3.text")); // NOI18N
        jMenuItem3.setName("jMenuItem3"); // NOI18N
        jMenuItem3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem3ActionPerformed(evt);
            }
        });
        jMenu2.add(jMenuItem3);

        jMenuBar1.add(jMenu2);

        jMenu3.setText(resourceMap.getString("jMenu3.text")); // NOI18N
        jMenu3.setName("jMenu3"); // NOI18N
        jMenuBar1.add(jMenu3);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel10, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 1045, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jPanel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 494, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jmni_salirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmni_salirActionPerformed
        // TODO add your handling code here:
         if(JOptionPane.showConfirmDialog(null, "Desea Salir?")==0) {
             this.dispose();
        }
    }//GEN-LAST:event_jmni_salirActionPerformed

    private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem1ActionPerformed
        // TODO add your handling code here:
        this.jmni_salirActionPerformed(evt);
    }//GEN-LAST:event_jMenuItem1ActionPerformed

    private void jmni_buscarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmni_buscarActionPerformed
        // TODO add your handling code here:
        String jtguia="";
    jtguia=JOptionPane.showInputDialog("Ingresa Nombre o apellido:");
 if (jtguia.length() > 0)
        {
             this.find_textoenjtable(1, 0, jtguia.toUpperCase().trim());
        }
    }//GEN-LAST:event_jmni_buscarActionPerformed

    private void jbtn_agregarprenominaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_agregarprenominaActionPerformed
        // TODO add your handling code here:
           rh_empleados_prenomina_agregar fsrhpa=new rh_empleados_prenomina_agregar();
            fsrhpa.pack();
            fsrhpa.setVisible(true);
}//GEN-LAST:event_jbtn_agregarprenominaActionPerformed

    private void jt_detalleprenominaPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_jt_detalleprenominaPropertyChange
        // TODO add your handling code here:
}//GEN-LAST:event_jt_detalleprenominaPropertyChange

    private void jcbx_eliminarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jcbx_eliminarActionPerformed
        // TODO add your handling code here:
          if(JOptionPane.showConfirmDialog(null, "Desea Eliminar Prenomina?")==0)
          {
            String texto="select * from x1_supervision_empleados_prenomina_doctos_delete(1,'"+this.jtf_prenomina.getText()+"')";
            System.out.println(texto);

       String confirma="";
        try
         {
             rs = x.sieuno_executediversosv2(texto,si_variables.getconexiongral());
            while (rs.next())
                {
                     confirma=rs.getString(1);
                }
        }
        catch(Exception e)
        {
            System.out.println(e.getMessage());
        }
      }
    }//GEN-LAST:event_jcbx_eliminarActionPerformed

    private void jTabbedPane2StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jTabbedPane2StateChanged
        // TODO add your handling code here:
          int indexactual=this.jTabbedPane2.getSelectedIndex();
          if(contrlpanel>0)
            {
            if(indexactual==1)
                {
                    this.jTabbedPane1.setSelectedIndex(1);
                }
                if(indexactual==0)
                {
                    this.jTabbedPane1.setSelectedIndex(0);
                }
                if((indexactual==2)&&(yacarguei2==0))
                {
                    yacarguei2=1;
                    this.carga_datos_empleado_x_patrondetalleplazas(24,this.jtf_idperiodoa.getText());
                    this.jTabbedPane1.setSelectedIndex(5);
                }
            }
    }//GEN-LAST:event_jTabbedPane2StateChanged

    private void jt_detalleprenomina3PropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_jt_detalleprenomina3PropertyChange
        // TODO add your handling code here:
        this.calcular_opepodf(1);
        int numerofilasd=this.jtable_modelo_detallenominanofope.getRowCount(),ii=0;
        String codidetalle[]=null;
     for( ii=0;ii<numerofilasd;ii++)
                        {
                        codidetalle=jtable_modelo_detallenominanofope.getValueAt(ii, 7).toString().split(":");
                        if (codidetalle[0].equals("t"))
                            {
                                jtable_modelo_detallenominanofope.setValueAt(this.jtf_salarionofixdia.getText(),ii ,4);
                                jtable_modelo_detallenominanofope.setValueAt(this.jtf_diast.getText(),ii ,3);
                            }
                        }

this.calcular_opepodf(2);
    }//GEN-LAST:event_jt_detalleprenomina3PropertyChange

    private void jt_detalleprenomina4PropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_jt_detalleprenomina4PropertyChange
        // TODO add your handling code here:
       this.calcular_opepodf(2);
    }//GEN-LAST:event_jt_detalleprenomina4PropertyChange

    private void jt_detalleprenominaxempleafPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_jt_detalleprenominaxempleafPropertyChange
        // TODO add your handling code here:
}//GEN-LAST:event_jt_detalleprenominaxempleafPropertyChange

    private void jt_detalleprenominaxempleanofPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_jt_detalleprenominaxempleanofPropertyChange
        // TODO add your handling code here:
}//GEN-LAST:event_jt_detalleprenominaxempleanofPropertyChange

    private void jbtn_nominafcamActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_nominafcamActionPerformed
        // TODO add your handling code here:
        if(JOptionPane.showConfirmDialog(null, "<html><h3>Desea Aplicar Cambios a :"+this.jtf_nominadeanombre.getText()+":?<br>Patron F:"+this.jcmbx_idrazonsocial.getSelectedItem()+"<br>Importe$:"+this.jtf_totalnof.getText()+"<br>Patron no F:"+this.jcmbx_idrazonsocialnof.getSelectedItem()+"<br>Importe no F$:"+this.jtf_totalimportenof.getText()+"<br>Total a Pagar:"+this.Pagoefectivo.getText()+"</h3></html>")==0)
        {
        
          this.documento_guardar(1);
          int numerofilasd=this.jtable_modelo_detallenominafope.getRowCount(),ii=0,i=0,numerofilasint=this.jtable_modelo_detallenominafope_int.getRowCount();
          String codi=this.jtf_idempf.getText().toString().trim(),codidetalle[]=null,idclista="",idstat="",idpod="";
          DecimalFormat myFormat = new DecimalFormat("############.####");
          DecimalFormat myFormat2 = new DecimalFormat("############.#####");

           for( ii=0;ii<numerofilasd;ii++)
                        {
                            idpod=jtable_modelo_detallenominafope.getValueAt(ii, 0).toString();
                           for( i=0;i<numerofilasint;i++)
                                {
                                    idclista=jtable_modelo_detallenominafope_int.getValueAt(i, 0).toString();
                                    idstat=jtable_modelo_detallenominafope_int.getValueAt(i, 2).toString();
                                    if ((idstat.equals(idpod)) && (idclista.equals(codi)))
                                            {
                                                jtable_modelo_detallenominafope_int.setValueAt(jtable_modelo_detallenominafope.getValueAt(ii, 3).toString(),i,5);
                                                jtable_modelo_detallenominafope_int.setValueAt(jtable_modelo_detallenominafope.getValueAt(ii, 5).toString(),i,11);
                                                jtable_modelo_detallenominafope_int.setValueAt(jtable_modelo_detallenominafope.getValueAt(ii, 4).toString(),i,12);
                                                jtable_modelo_detallenominafope_int.setValueAt(jtable_modelo_detallenominafope.getValueAt(ii, 6).toString(),i,13);

                                            }
                                }
                        }
        numerofilasd=this.jtable_modelo_detallenomina.getRowCount();
        for( ii=0;ii<numerofilasd;ii++)
                        {
                        codidetalle=jtable_modelo_detallenomina.getValueAt(ii, 0).toString().split(":");
                        if (codi.equals(codidetalle[0]))
                            {
                                System.out.println("si es igual"+codi+" "+codidetalle[0]);
                                jtable_modelo_detallenomina.setValueAt(myFormat.format(Float.valueOf(this.jtf_totalperf.getText().toString())),ii ,2);
                                jtable_modelo_detallenomina.setValueAt(myFormat.format(Float.valueOf(this.jtf_totaldecf.getText().toString())),ii ,3);
                                jtable_modelo_detallenomina.setValueAt(myFormat.format(Float.valueOf(this.jtf_totaldecf.getText().toString())+Float.valueOf(this.jtf_totalperf.getText().toString())),ii ,4);
                                 jtable_modelo_detallenomina.setValueAt(myFormat2.format(Float.valueOf(this.jtf_totalpernof.getText().toString())),ii ,5);
                                jtable_modelo_detallenomina.setValueAt(myFormat.format(Float.valueOf(this.jtf_totaldecnof.getText().toString())),ii ,6);
                                jtable_modelo_detallenomina.setValueAt(myFormat.format(Float.valueOf(this.jtf_totalpernof.getText().toString())+Float.valueOf(this.jtf_totaldecnof.getText().toString())),ii ,7);
                                jtable_modelo_detallenomina.setValueAt(myFormat.format(Float.valueOf(this.jtf_totaldecf.getText().toString())+Float.valueOf(this.jtf_totalperf.getText().toString())+Float.valueOf(this.jtf_totalpernof.getText().toString())+Float.valueOf(this.jtf_totaldecnof.getText().toString())),ii ,8);
                            }
                        }

        ///rollo no fiscal
         numerofilasd=this.jtable_modelo_detallenominanofope.getRowCount();
         numerofilasint=this.jtable_modelo_detallenominanofope_int.getRowCount();
              for( ii=0;ii<numerofilasd;ii++)
                        {
                            idpod=jtable_modelo_detallenominanofope.getValueAt(ii, 0).toString();
                           for( i=0;i<numerofilasint;i++)
                                {
                                    idclista=jtable_modelo_detallenominanofope_int.getValueAt(i, 0).toString();
                                    idstat=jtable_modelo_detallenominanofope_int.getValueAt(i, 2).toString();
                                    if ((idstat.equals(idpod)) && (idclista.equals(codi)))
                                            {
                                                jtable_modelo_detallenominanofope_int.setValueAt(jtable_modelo_detallenominanofope.getValueAt(ii, 3).toString(),i,5);
                                                jtable_modelo_detallenominanofope_int.setValueAt(jtable_modelo_detallenominanofope.getValueAt(ii, 5).toString(),i,11);
                                                jtable_modelo_detallenominanofope_int.setValueAt(jtable_modelo_detallenominanofope.getValueAt(ii, 4).toString(),i,12);
                                                jtable_modelo_detallenominanofope_int.setValueAt(jtable_modelo_detallenominanofope.getValueAt(ii, 6).toString(),i,13);
                                            }
                                }
                        }
   //rollo para impresion
        this.calcular_totales();
        while(jtable_modelo_detallenominafope.getRowCount()>0)jtable_modelo_detallenominafope.removeRow(0);
        while(jtable_modelo_detallenominanofope.getRowCount()>0)jtable_modelo_detallenominanofope.removeRow(0);

        //this.carga_datos_patron();
        this.carga_datos_patron_pagos(this.jtf_idperiodoa.getText());
        this.centrar_datospat();
        this.jTabbedPane2.setSelectedIndex(1);
       }
}//GEN-LAST:event_jbtn_nominafcamActionPerformed

    private void jtf_diastActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_diastActionPerformed
        // TODO add your handling code here:
this.calcula_pago();
    }//GEN-LAST:event_jtf_diastActionPerformed

    private void jchbx_verempleadoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jchbx_verempleadoActionPerformed
        // TODO add your handling code here:
        int fila = jt_detalleprenomina.getSelectedRow();
        String codigo[]=this.jtable_modelo_detalleprenomina.getValueAt(fila, 1).toString().split(":");
        rh_empleados_edita fsrhe=new rh_empleados_edita(Integer.valueOf(codigo[0]),1);
        fsrhe.pack();
        fsrhe.setVisible(true);
}//GEN-LAST:event_jchbx_verempleadoActionPerformed

    private void jchbx_verempleado1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jchbx_verempleado1ActionPerformed
        // TODO add your handling code here:
         int fila = jt_detalleprenominapodf.getSelectedRow();
        String codigo=this.jtable_modelo_detallenomina.getValueAt(fila, 0).toString();
        rh_empleados_edita fsrhe=new rh_empleados_edita(Integer.valueOf(codigo),1);
        fsrhe.pack();
        fsrhe.setVisible(true);
    }//GEN-LAST:event_jchbx_verempleado1ActionPerformed

    private void jtf_sueldobase1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_sueldobase1ActionPerformed
        // TODO add your handling code here:
        this.jtf_sueldobase2.requestFocus();
}//GEN-LAST:event_jtf_sueldobase1ActionPerformed

    private void jtf_sueldobase2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_sueldobase2ActionPerformed
        // TODO add your handling code here:
        this.jtf_sueldobase3.requestFocus();
}//GEN-LAST:event_jtf_sueldobase2ActionPerformed

    private void jtf_sueldobase3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_sueldobase3ActionPerformed
        // TODO add your handling code here:
        this.jtf_sueldobase5.requestFocus();
}//GEN-LAST:event_jtf_sueldobase3ActionPerformed

    private void jtf_sueldobase4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_sueldobase4ActionPerformed
        // TODO add your handling code here:
        this.jtf_sueldobase5.requestFocus();
}//GEN-LAST:event_jtf_sueldobase4ActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        // TODO add your handling code here:
        String arreglo_pa[]=this.jcmbx_idrazonsocial.getSelectedItem().toString().split(":");
        String arreglo_pa2[]=this.jcmbx_idrazonsocialnof.getSelectedItem().toString().split(":");
        String arreglo_pac[]=this.jcmbx_idrazonclasif.getSelectedItem().toString().split(":");
        String pFechainimss="NULL",pfechaalta="NULL",codidetalle="",codi=this.jtf_idempf.getText();

       SimpleDateFormat formato = new SimpleDateFormat("yyyy-MM-dd");
       if(this.jdc_fechaingreso2.getDate()!=null)
       pfechaalta = formato.format(this.jdc_fechaingreso2.getDate());//fecha final de reporte

       if(this.jdc_fechaingresoimss1.getDate()!=null)
        pFechainimss ="''"+formato.format(this.jdc_fechaingresoimss1.getDate())+"''";//fecha final de reporte
        if(JOptionPane.showConfirmDialog(null, "<html><h2>Desea Aplicar Cambios a :"+this.jtf_nominadeanombre.getText()+":?<br>Patron F:"+this.jcmbx_idrazonsocial.getSelectedItem()+"<br>Sueldo$:"+this.jtf_sueldobase1.getText()+"<br>Patron no F:"+this.jcmbx_idrazonsocialnof.getSelectedItem()+"<br>Sal Base C$:"+this.jtf_sueldobase2.getText()+"<br>Sal. Nominal:"+this.jtf_sueldobase3.getText()+"</h2></html>")==0)
        {
            String  texto="select * from x1_supervision_empleados_actualiza_salario(1,"+this.jtf_idempf.getText()+",'"+arreglo_pa[0]+"','"+this.jtf_sueldobase1.getText().trim()+"','"+this.jtf_sueldobase2.getText().trim()+"','"+this.jtf_sueldobase3.getText().trim()+"','"+this.jtf_sueldobase4.getText().trim()+"','','"+this.jtf_empleadorfc.getText().trim()+"','"+this.jtf_empleadocurp.getText().trim()+"','"+this.jtf_empleadoimss.getText().trim()+"','"+this.jtf_sueldobase5.getText().trim()+"','"+arreglo_pa2[0]+"','"+pfechaalta+"','"+pFechainimss+"','"+arreglo_pac[0]+"','"+this.jtf_idperiodoa.getText()+"');",confirma="";
            System.out.println(texto);
            try
                {
                rs = x.sieuno_executediversosv2(texto,si_variables.getconexiongral());
                while (rs.next())
                    {
                        confirma=rs.getString(1);
                    }
                }
            catch(Exception e)
                {
                    System.out.println(e.getMessage());
                }
            if (confirma.equals("1")) 
            {
                this.crea_hojempleadosnomina_up(this.jtf_idempf.getText(),"",this.jtf_sueldobase1.getText().trim(),this.jtf_sueldobase2.getText().trim(),this.jtf_sueldobase3.getText().trim(),this.jtf_sueldobase4.getText().trim(),2,"","",this.jtf_sueldobase5.getText().trim(),arreglo_pa[0],arreglo_pa2[0]);
                for(int ii=0;ii<this.jtable_modelo_detallenomina.getRowCount();ii++)
                        {
                        codidetalle=jtable_modelo_detallenomina.getValueAt(ii, 0).toString();
                        if (codi.equals(codidetalle))
                            {
                                //System.out.println("si es igual"+codi+" "+codidetalle[0]);
                                jtable_modelo_detallenomina.setValueAt(arreglo_pa[0],ii ,9);
                                jtable_modelo_detallenomina.setValueAt(arreglo_pa2[0],ii ,10);

                            }
                        }
                
                while(jtable_modelo_detallenominafope.getRowCount()>0)jtable_modelo_detallenominafope.removeRow(0);
                while(jtable_modelo_detallenominanofope.getRowCount()>0)jtable_modelo_detallenominanofope.removeRow(0);
                 this.carga_datos_patron_pagos(this.jtf_idperiodoa.getText());
                 this.centrar_datospat();
                 this.jTabbedPane2.setSelectedIndex(1);
                JOptionPane.showMessageDialog(null,"Gracias Salarios Guardados Correctamente", "Sistema Integral Tareas",1);

                }
            else
                {
                    JOptionPane.showMessageDialog(null,"Error Verifiqu con Administrador no se ha podido guardar", "Sistema Integral Error",1);
               }
        }
}//GEN-LAST:event_jButton1ActionPerformed

    private void jtf_sueldobase5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_sueldobase5ActionPerformed
        // TODO add your handling code here:
        this.jcmbx_idrazonsocial.requestFocus();
}//GEN-LAST:event_jtf_sueldobase5ActionPerformed

    private void jtf_empleadorfcActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_empleadorfcActionPerformed
        // TODO add your handling code here:
        this.jtf_empleadocurp.requestFocus();
}//GEN-LAST:event_jtf_empleadorfcActionPerformed

    private void jtf_empleadocurpActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_empleadocurpActionPerformed
        // TODO add your handling code here:
        this.jtf_empleadoimss.requestFocus();
}//GEN-LAST:event_jtf_empleadocurpActionPerformed

    private void jtf_empleadoimssActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_empleadoimssActionPerformed
        // TODO add your handling code here:
        this.jtf_sueldobase1.requestFocus();
}//GEN-LAST:event_jtf_empleadoimssActionPerformed

    private void jtf_sueldobase6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_sueldobase6ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jtf_sueldobase6ActionPerformed

    private void jtf_sueldobase7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_sueldobase7ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jtf_sueldobase7ActionPerformed

    private void jtf_sueldobase8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_sueldobase8ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jtf_sueldobase8ActionPerformed

    private void jtf_sueldobase9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_sueldobase9ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jtf_sueldobase9ActionPerformed

    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
        // TODO add your handling code here:
        String arreglo_pa[]=this.jcmbx_idrazonsocial1.getSelectedItem().toString().split(":");
        String arreglo_pa2[]=this.jcmbx_idrazonsocialnof1.getSelectedItem().toString().split(":");
        String arreglo_pac[]=this.jcmbx_idrazonclasif1.getSelectedItem().toString().split(":");
         String pFechainimss="NULL",pfechaalta="NULL";

       SimpleDateFormat formato = new SimpleDateFormat("yyyy-MM-dd");
       if(this.jdc_fechaingreso1.getDate()!=null)
       pfechaalta = formato.format(this.jdc_fechaingreso1.getDate());//fecha final de reporte

       if(this.jdc_fechaingresoimss.getDate()!=null)
        pFechainimss ="''"+ formato.format(this.jdc_fechaingresoimss.getDate())+"''";//fecha final de reporte


        if(JOptionPane.showConfirmDialog(null, "Estan Correctos sus Datos?")==0)
        {
            String  texto="select * from x1_supervision_empleados_actualiza_salario("+this.jtf_idempf1.getText()+",'"+arreglo_pa[0]+"','"+this.jtf_sueldobase6.getText().trim()+"','"+this.jtf_sueldobase7.getText().trim()+"','"+this.jtf_sueldobase8.getText().trim()+"','"+this.jtf_sueldobase9.getText().trim()+"','','"+this.jtf_empleadorfc1.getText().trim()+"','"+this.jtf_empleadocurp1.getText().trim()+"','"+this.jtf_empleadoimss1.getText().trim()+"','"+this.jtf_sueldobase10.getText().trim()+"','"+arreglo_pa2[0]+"','"+pfechaalta+"','"+pFechainimss+"','"+arreglo_pac[0]+"');",confirma="";
            System.out.println(texto);
            try {
                rs = x.sieuno_executediversosv2(texto,si_variables.getconexiongral());

                while (rs.next()) {
                    confirma=rs.getString(1);
                }
            } catch(Exception e) {
                System.out.println(e.getMessage());
            }
            if (confirma.equals("1")) {

                JOptionPane.showMessageDialog(null,"Gracias Salarios Guardados Correctamente", "Sistema Integral Tareas",1);


            } else {
                JOptionPane.showMessageDialog(null,"Error Verifiqu con Administrador no se ha podido guardar", "Sistema Integral Error",1);

            }
        }
    }//GEN-LAST:event_jButton2ActionPerformed

    private void jtf_sueldobase10ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_sueldobase10ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jtf_sueldobase10ActionPerformed

    private void jtf_empleadorfc1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_empleadorfc1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jtf_empleadorfc1ActionPerformed

    private void jtf_empleadocurp1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_empleadocurp1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jtf_empleadocurp1ActionPerformed

    private void jtf_empleadoimss1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_empleadoimss1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jtf_empleadoimss1ActionPerformed

    private void jtf_diast1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_diast1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jtf_diast1ActionPerformed

    private void jdc_fechaingreso1KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jdc_fechaingreso1KeyPressed
        // TODO add your handling code here:
}//GEN-LAST:event_jdc_fechaingreso1KeyPressed

    private void jdc_fechaingresoimssKeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jdc_fechaingresoimssKeyPressed
        // TODO add your handling code here:
}//GEN-LAST:event_jdc_fechaingresoimssKeyPressed

    private void jdc_fechaingresoimss1KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jdc_fechaingresoimss1KeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_jdc_fechaingresoimss1KeyPressed

    private void jdc_fechaingreso2KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jdc_fechaingreso2KeyPressed
        // TODO add your handling code here:
    }//GEN-LAST:event_jdc_fechaingreso2KeyPressed

    private void jmni_agregaidempleadoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmni_agregaidempleadoActionPerformed
        // TODO add your handling code here:
             keephis=1;//variable para mantener el historial
        String jtguia="",retorno="";
           jtguia=JOptionPane.showInputDialog("Ingresa id de Empleado:");
           if (jtguia.length() > 0)
                        {
                                this.carga_datos_empleado_x_patron(8, jtguia);
                                this.carga_datos_empleado_x_patron_movdet(8,jtguia);
                                this.carga_datos_empleado_x_patrondetalle(10,jtguia);
                                //this.carga_datos_patron_pagosdet(8,jtguia, this.jtf_idperiodoa.getText());
                        }
    keephis=0; //variable para no mantener el historial
}//GEN-LAST:event_jmni_agregaidempleadoActionPerformed

    private void jTabbedPane1StateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_jTabbedPane1StateChanged
        // TODO add your handling code here:
          indexactual=this.jTabbedPane1.getSelectedIndex();
         if(indexok==1)
         {
                if((indexactual==1)&&(i1==0))
                        {
                            if(this.jtf_idpatrona.getText().length()>0)
                            {
                            i1=1;
                                   // this.carga_datos_empleado_x_patron(6, this.jtf_idpatrona.getText());
                                    //this.carga_datos_empleado_x_patron_movdet(4,this.jtf_idpatrona.getText());
                                    //this.carga_datos_empleado_x_patrondetalle(10,this.jtf_idpatrona.getText());
                                    //this.calcular_totales();
                                    //this.centrar_datos();
                            }
                    }
                if((indexactual==3)&&(i3==0))
                    {
                        if(this.jtf_idpatrona.getText().length()>0)
                            {
                                i3=1;
                                this.carga_datos_patron_pagosdet(0,this.jtf_idpatrona.getText(), this.jtf_idperiodoa.getText());
                            }
                    }
         }
    }//GEN-LAST:event_jTabbedPane1StateChanged

    private void jmni_perderdatosnogActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmni_perderdatosnogActionPerformed
        // TODO add your handling code here:
    if(JOptionPane.showConfirmDialog(null, "Deseas Perder sus Datos?")==0)
        {
            datosmodificados=0;
            JOptionPane.showMessageDialog(null,"documento Liberado", "Sistema Integral(Alta Nomina) : Error",1);
        }

    }//GEN-LAST:event_jmni_perderdatosnogActionPerformed

    private void jcmbx_idrazonsocialnof2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jcmbx_idrazonsocialnof2ActionPerformed
        // TODO add your handling code here:
        String arreglo_pod[]=null;
if(conbo1>0)
    {
        if(idrowfonof==1)
            {
                arreglo_pod=this.jcmbx_idrazonsocialnof2.getSelectedItem().toString().split(":");
                 this.jtable_modelo_detallenominafope.setValueAt(arreglo_pod[2], Integer.valueOf(this.jtf_idselecf.getText()), 5);
                 this.jtable_modelo_detallenominafope.setValueAt(arreglo_pod[1], Integer.valueOf(this.jtf_idselecf.getText()), 4);
                 this.jtable_modelo_detallenominafope.setValueAt(arreglo_pod[0], Integer.valueOf(this.jtf_idselecf.getText()), 3);
                 this.calcula_pago();
            }
        if(idrowfonof==2)
            {
                    arreglo_pod=this.jcmbx_idrazonsocialnof2.getSelectedItem().toString().split(":");
                    this.jtable_modelo_detallenominanofope.setValueAt(arreglo_pod[2], Integer.valueOf(this.jtf_idselecnof.getText()), 5);
                    this.jtable_modelo_detallenominanofope.setValueAt(arreglo_pod[1], Integer.valueOf(this.jtf_idselecnof.getText()), 4);
                    this.jtable_modelo_detallenominanofope.setValueAt(arreglo_pod[0], Integer.valueOf(this.jtf_idselecnof.getText()), 3);
                    this.calcular_opepodf(2);
            }
    }
    }//GEN-LAST:event_jcmbx_idrazonsocialnof2ActionPerformed

    private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
        rh_empleados_prenomina_print fsrhp=new rh_empleados_prenomina_print(this.jtf_idperiodoa.getText(),this.jtf_idpatrona.getText(),3,this.jtf_periodo.getText(),this.jtf_rzpatron.getText(),this.jtf_rzdescripcion.getText(),this.jtf_rzrazon.getText(),this.jtf_rzpatrondir.getText());
        fsrhp.pack();
        fsrhp.setVisible(true);
}//GEN-LAST:event_jButton3ActionPerformed

    private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed
        // TODO add your handling code here:
        rh_empleados_prenomina_print fsrhp=new rh_empleados_prenomina_print(this.jtf_idperiodoa.getText(),this.jtf_idpatrona.getText(),2,this.jtf_periodo.getText(),this.jtf_rzpatron.getText(),this.jtf_rzdescripcion.getText(),this.jtf_rzrazon.getText(),this.jtf_rzpatrondir.getText());
        fsrhp.pack();
        fsrhp.setVisible(true);
    }//GEN-LAST:event_jButton4ActionPerformed

    private void jcmbox_idperiodoiniActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jcmbox_idperiodoiniActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jcmbox_idperiodoiniActionPerformed

    private void jcmbox_idperiodofinActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jcmbox_idperiodofinActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jcmbox_idperiodofinActionPerformed

    private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton5ActionPerformed
        // TODO add your handling code here:
           String arreglo_pei[]=this.jcmbox_idperiodoini.getSelectedItem().toString().split(":");
        String arreglo_pef[]=this.jcmbox_idperiodofin.getSelectedItem().toString().split(":");
        this.jtf_idperini.setText(arreglo_pei[0]);
         this.jtf_idperfin.setText(arreglo_pef[0]);
        this.carga_datos_podhistorial_patron(17,arreglo_pei[0],arreglo_pef[0],"");
        this.construir_total_poddet();
    }//GEN-LAST:event_jButton5ActionPerformed

    private void jbtn_impresionanteriorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_impresionanteriorActionPerformed
        // TODO add your handling code here:
        rh_empleados_prenomina_print fsrhp=new rh_empleados_prenomina_print(this.jtf_idperiodoa.getText(),this.jtf_idpatrona.getText(),1,this.jtf_periodo.getText().toUpperCase(),this.jtf_rzpatron.getText().toUpperCase(),this.jtf_rzdescripcion.getText().toUpperCase(),this.jtf_rzrazon.getText().toUpperCase(),this.jtf_rzpatrondir.getText().toUpperCase());
        fsrhp.pack();
        fsrhp.setVisible(true);
}//GEN-LAST:event_jbtn_impresionanteriorActionPerformed

    private void jMenuItem2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem2ActionPerformed
        // TODO add your handling code here:
        this.jbtn_impresionanteriorActionPerformed(evt);
    }//GEN-LAST:event_jMenuItem2ActionPerformed

    private void jmni_actualizarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmni_actualizarActionPerformed
        // TODO add your handling code here:
        this.carga_datos_periodos();
        this.carga_datos_empleado_x_patrondetalleplazas(24,this.jtf_idperiodoa.getText());
    }//GEN-LAST:event_jmni_actualizarActionPerformed

    private void jbtn_aplicarcambioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_aplicarcambioActionPerformed
        // TODO add your handling code here:
        String esquemaactual[]=null,idpersep="",esquema[]=null,idpod="";
        esquema=this.jcmbx_idesquema.getSelectedItem().toString().split(":");
        idpod=this.jtf_idpodesquema.getText();
        if(JOptionPane.showConfirmDialog(null, "<html>Aplicar Factor:?<h2><br>Concepto:"+this.jtf_idpodesqdesc.getText()+"<br>Factor:"+this.jtf_idpodesquemafac.getText()+"</h2></html>")==0)
                    {
                     for(int iint=0;iint<this.jtable_modelo_detallenominafope_int.getRowCount();iint++)
                             {
                                            esquemaactual=jtable_modelo_detallenominafope_int.getValueAt(iint, 1).toString().split(":");
                                            idpersep=this.jtable_modelo_detallenominafope_int.getValueAt(iint, 2).toString();
                                            if ((esquemaactual[1].equals(esquema[0]))&& (idpersep.equals(idpod)))
                                                    {
                                                        jtable_modelo_detallenominafope_int.setValueAt(this.jtf_idpodesquemafac.getText(),iint ,11);
                                                    }
                            }
                    }
    }//GEN-LAST:event_jbtn_aplicarcambioActionPerformed

    private void jbtn_aplicarcambio1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtn_aplicarcambio1ActionPerformed
        // TODO add your handling code here:
        float factor=0;
        DecimalFormat myFormat = new DecimalFormat("############.#####");
        this.jtf_idpodesquemafac.setText(myFormat.format((Float.valueOf(this.jtf_operacioniimpor.getText().toString())/Float.valueOf(this.jtf_operacionidias.getText().toString()))/Float.valueOf(this.jtf_idpodesquemasal.getText().toString())));
        this.jtf_idpodesquemafac.requestFocus();
    }//GEN-LAST:event_jbtn_aplicarcambio1ActionPerformed

    private void jtf_idpodesquemasalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_idpodesquemasalActionPerformed
        // TODO add your handling code here:
        this.jbtn_aplicarcambio1.requestFocus();
    }//GEN-LAST:event_jtf_idpodesquemasalActionPerformed

    private void jtf_operacioniimporActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_operacioniimporActionPerformed
        // TODO add your handling code here:
        this.jtf_idpodesquemasal.requestFocus();
    }//GEN-LAST:event_jtf_operacioniimporActionPerformed

    private void jtf_operacionidiasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtf_operacionidiasActionPerformed
        // TODO add your handling code here:
        this.jtf_operacioniimpor.requestFocus();
    }//GEN-LAST:event_jtf_operacionidiasActionPerformed

    private void jMenuItem3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem3ActionPerformed
        // TODO add your handling code here:
            this.carga_datos_patron_pagos(this.jtf_idperiodoa.getText());
            this.centrar_datospat();
            this.jTabbedPane2.setSelectedIndex(1);
    }//GEN-LAST:event_jMenuItem3ActionPerformed

    private void jcmbox_idperiodotipoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jcmbox_idperiodotipoActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_jcmbox_idperiodotipoActionPerformed

    private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton6ActionPerformed
        // TODO add your handling code here:
        if(JOptionPane.showConfirmDialog(null, "Desea Crear Periodo?")==0)
        {
        SimpleDateFormat formato = new SimpleDateFormat("yyyy-MM-dd");
        String pFechain = formato.format(this.jdc_fechainicialnomina.getDate());//fecha final de reporte
        String pFechafi = formato.format(this.jdc_fechafinalnomina.getDate());//fecha final de reporte
        String pFechaini = formato.format(this.jdc_fechainicialincidencia.getDate());//fecha final de reporte
        String pFechafii = formato.format(this.jdc_fechafinalinsidencia.getDate());//fecha final de reporte
        String arreglo_tipper[]=this.jcmbox_idperiodotipo.getSelectedItem().toString().split(":");
         int folio=0;

         String textosql="select * from x1_supervision_empleados_prenomina_periodos_ins(1,'"+this.jtf_descripperiodo.getText().toUpperCase().trim()+"','"+this.jtf_obserperiodoin.getText().toUpperCase()+"','"+pFechain+"','"+pFechafi+"','"+pFechaini+"','"+pFechafii+"','"+arreglo_tipper[0]+"','0');";
         System.out.println(textosql);
         try {
            rs = x.sieuno_executediversosv2(textosql,si_variables.getconexiongral());
            while (rs.next())
                {
                folio = rs.getInt(1);
                   }
            } catch (Exception e) {
                System.out.println(e.getMessage());
            }
         if (folio>0)
                      {
                        JOptionPane.showMessageDialog(null,"Gracias Periodo Creado", "Sistema Integral: Nominas",1);

                      }
                else
                      {
                        JOptionPane.showMessageDialog(null,"Error Verifiqu con Administrador no se ha podido guardar", "Sistema Integral Error",1);
                      }
        }

    }//GEN-LAST:event_jButton6ActionPerformed

    private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton7ActionPerformed
        // TODO add your handling code here:
              String arreglo_pla[]=this.jcmbx_idrazonclasif2.getSelectedItem().toString().split(":");
       if(JOptionPane.showConfirmDialog(null, "<html><b><h2>Plaza:<br>"+arreglo_pla[1]+"<br> Estan Correctos sus Datos</h2></b></html>?")==0)
         {
        String  texto="select * from x1_supervision_empleados_actualiza_plaza(2,"+this.jtf_plazaidemp.getText()+","+arreglo_pla[0]+",'','"+""+"','"+this.jtf_plazaidplaza.getText()+"','');",confirma="";
        System.out.println(texto);
            try
            {
                rs = x.sieuno_executediversosv2(texto,si_variables.getconexiongral());

               while (rs.next())
                    {
                      confirma=rs.getString(1);
                    }
             }
            catch(Exception e)
            {
                System.out.println(e.getMessage());
            }
         if (confirma.equals("1"))
              {

                JOptionPane.showMessageDialog(null,"Plaza asignada Correctamente", "Sistema Integral Tareas",1);


              }
         else
              {
                JOptionPane.showMessageDialog(null,"Error Verifiqu con Administrador no se ha podido guardar", "Sistema Integral Error",1);

              }
         }
}//GEN-LAST:event_jButton7ActionPerformed
    private void jt_detalleprenominapodf4MouseClicked(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
    }
    private void jt_nomina_perydedMouseClicked(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
    }
    private void jt_detallepodpatronMouseClicked(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
    }

    private void jt_detalleprenomina4MouseClicked(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
    }

    private void jt_detalleprenomina3MouseClicked(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
    }
    private void jt_detalleprenominapodf2MouseClicked(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
    }
       private void jt_detalleprenominaMouseClicked(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
    }
    private void jt_detalleprenominapodf1MouseClicked(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
    }

    private void jt_detalleprenominapodnofMouseClicked(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
    }
    private void jt_detalleprenominapodfMouseClicked(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
}
    private void jt_catpatronesMouseClicked(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
    }
    private void jt_periodosMouseClicked(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
    }
   private void jt_catprenominasMouseClicked(java.awt.event.MouseEvent evt) {
        // TODO add your handling code here:
    }
    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new rh_empleados_prenomina().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTextField Pagoefectivo;
    private javax.swing.JTextField Pagoefectivo1;
    private javax.swing.ButtonGroup buttonGroup1;
    private org.postgresql.Driver driver1;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButton4;
    private javax.swing.JButton jButton5;
    private javax.swing.JButton jButton6;
    private javax.swing.JButton jButton7;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JLabel jLabel27;
    private javax.swing.JLabel jLabel28;
    private javax.swing.JLabel jLabel29;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JLabel jLabel31;
    private javax.swing.JLabel jLabel32;
    private javax.swing.JLabel jLabel33;
    private javax.swing.JLabel jLabel34;
    private javax.swing.JLabel jLabel35;
    private javax.swing.JLabel jLabel36;
    private javax.swing.JLabel jLabel37;
    private javax.swing.JLabel jLabel38;
    private javax.swing.JLabel jLabel39;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel40;
    private javax.swing.JLabel jLabel41;
    private javax.swing.JLabel jLabel42;
    private javax.swing.JLabel jLabel43;
    private javax.swing.JLabel jLabel44;
    private javax.swing.JLabel jLabel45;
    private javax.swing.JLabel jLabel46;
    private javax.swing.JLabel jLabel47;
    private javax.swing.JLabel jLabel48;
    private javax.swing.JLabel jLabel49;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel50;
    private javax.swing.JLabel jLabel51;
    private javax.swing.JLabel jLabel52;
    private javax.swing.JLabel jLabel53;
    private javax.swing.JLabel jLabel54;
    private javax.swing.JLabel jLabel55;
    private javax.swing.JLabel jLabel56;
    private javax.swing.JLabel jLabel57;
    private javax.swing.JLabel jLabel58;
    private javax.swing.JLabel jLabel59;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel60;
    private javax.swing.JLabel jLabel61;
    private javax.swing.JLabel jLabel62;
    private javax.swing.JLabel jLabel63;
    private javax.swing.JLabel jLabel64;
    private javax.swing.JLabel jLabel65;
    private javax.swing.JLabel jLabel66;
    private javax.swing.JLabel jLabel67;
    private javax.swing.JLabel jLabel68;
    private javax.swing.JLabel jLabel69;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel70;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JMenuItem jMenuItem2;
    private javax.swing.JMenuItem jMenuItem3;
    private javax.swing.JPanel jPanel10;
    private javax.swing.JPanel jPanel11;
    private javax.swing.JPanel jPanel12;
    private javax.swing.JPanel jPanel13;
    private javax.swing.JPanel jPanel14;
    private javax.swing.JPanel jPanel15;
    private javax.swing.JPanel jPanel16;
    private javax.swing.JPanel jPanel17;
    private javax.swing.JPanel jPanel18;
    private javax.swing.JPanel jPanel19;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel20;
    private javax.swing.JPanel jPanel21;
    private javax.swing.JPanel jPanel22;
    private javax.swing.JPanel jPanel23;
    private javax.swing.JPanel jPanel24;
    private javax.swing.JPanel jPanel25;
    private javax.swing.JPanel jPanel26;
    private javax.swing.JPanel jPanel27;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane10;
    private javax.swing.JScrollPane jScrollPane11;
    private javax.swing.JScrollPane jScrollPane12;
    private javax.swing.JScrollPane jScrollPane14;
    private javax.swing.JScrollPane jScrollPane15;
    private javax.swing.JScrollPane jScrollPane16;
    private javax.swing.JScrollPane jScrollPane17;
    private javax.swing.JScrollPane jScrollPane18;
    private javax.swing.JScrollPane jScrollPane19;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane20;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JScrollPane jScrollPane6;
    private javax.swing.JScrollPane jScrollPane8;
    private javax.swing.JScrollPane jScrollPane9;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JTabbedPane jTabbedPane2;
    private javax.swing.JButton jbtn_agregarprenomina;
    private javax.swing.JButton jbtn_aplicarcambio;
    private javax.swing.JButton jbtn_aplicarcambio1;
    private javax.swing.JButton jbtn_impresionanterior;
    private javax.swing.JButton jbtn_nominafcam;
    private javax.swing.JCheckBox jcbx_eliminar;
    private javax.swing.JCheckBox jchbx_verempleado;
    private javax.swing.JCheckBox jchbx_verempleado1;
    private javax.swing.JComboBox jcmbox_idperiodofin;
    private javax.swing.JComboBox jcmbox_idperiodoini;
    private javax.swing.JComboBox jcmbox_idperiodotipo;
    private javax.swing.JComboBox jcmbx_idesquema;
    private javax.swing.JComboBox jcmbx_idrazonclasif;
    private javax.swing.JComboBox jcmbx_idrazonclasif1;
    private javax.swing.JComboBox jcmbx_idrazonclasif2;
    private javax.swing.JComboBox jcmbx_idrazonsocial;
    private javax.swing.JComboBox jcmbx_idrazonsocial1;
    private javax.swing.JComboBox jcmbx_idrazonsocialnof;
    private javax.swing.JComboBox jcmbx_idrazonsocialnof1;
    private javax.swing.JComboBox jcmbx_idrazonsocialnof2;
    private com.toedter.calendar.JDateChooser jdc_fechafinalinsidencia;
    private com.toedter.calendar.JDateChooser jdc_fechafinalnomina;
    private com.toedter.calendar.JDateChooser jdc_fechaingreso1;
    private com.toedter.calendar.JDateChooser jdc_fechaingreso2;
    private com.toedter.calendar.JDateChooser jdc_fechaingresoimss;
    private com.toedter.calendar.JDateChooser jdc_fechaingresoimss1;
    private com.toedter.calendar.JDateChooser jdc_fechainicialincidencia;
    private com.toedter.calendar.JDateChooser jdc_fechainicialnomina;
    private javax.swing.JLabel jlbl_cantidadregistros;
    private javax.swing.JLabel jlbl_textobuscado;
    private javax.swing.JMenuItem jmni_actualizar;
    private javax.swing.JMenuItem jmni_agregaidempleado;
    private javax.swing.JMenuItem jmni_buscar;
    private javax.swing.JMenuItem jmni_catalogoempleados;
    private javax.swing.JMenuItem jmni_perderdatosnog;
    private javax.swing.JMenuItem jmni_salir;
    private javax.swing.JTable jt_catpatrones;
    private javax.swing.JTable jt_catpatrones1;
    private javax.swing.JTable jt_catprenominas;
    private javax.swing.JTable jt_detallepodpatron;
    private javax.swing.JTable jt_detalleprenomina;
    private javax.swing.JTable jt_detalleprenomina3;
    private javax.swing.JTable jt_detalleprenomina4;
    private javax.swing.JTable jt_detalleprenominapodf;
    private javax.swing.JTable jt_detalleprenominapodf1;
    private javax.swing.JTable jt_detalleprenominapodf2;
    private javax.swing.JTable jt_detalleprenominapodf3;
    private javax.swing.JTable jt_detalleprenominapodf4;
    private javax.swing.JTable jt_detalleprenominaxempleaf;
    private javax.swing.JTable jt_detalleprenominaxempleanof;
    private javax.swing.JTable jt_nomina_peryded;
    private javax.swing.JTable jt_periodos;
    private javax.swing.JTable jt_resumenhistorial;
    private javax.swing.JTable jt_resumenhistorialpuntual;
    private javax.swing.JTextField jtf_departamento;
    private javax.swing.JTextField jtf_descripperiodo;
    private javax.swing.JTextField jtf_diast;
    private javax.swing.JTextField jtf_diast1;
    private javax.swing.JTextField jtf_empleadocurp;
    private javax.swing.JTextField jtf_empleadocurp1;
    private javax.swing.JTextField jtf_empleadoimss;
    private javax.swing.JTextField jtf_empleadoimss1;
    private javax.swing.JTextField jtf_empleadorfc;
    private javax.swing.JTextField jtf_empleadorfc1;
    private javax.swing.JTextField jtf_idempf;
    private javax.swing.JTextField jtf_idempf1;
    private javax.swing.JTextField jtf_idpatrona;
    private javax.swing.JTextField jtf_idpatronfac;
    private javax.swing.JTextField jtf_idpatronnofact;
    private javax.swing.JTextField jtf_idperfin;
    private javax.swing.JTextField jtf_idperini;
    private javax.swing.JTextField jtf_idperiodoa;
    private javax.swing.JTextField jtf_idperiodoa_des;
    private javax.swing.JTextField jtf_idpodesqdesc;
    private javax.swing.JTextField jtf_idpodesquema;
    private javax.swing.JTextField jtf_idpodesquemafac;
    private javax.swing.JTextField jtf_idpodesquemasal;
    private javax.swing.JTextField jtf_idselecf;
    private javax.swing.JTextField jtf_idselecnof;
    private javax.swing.JTextField jtf_nominadeanombre;
    private javax.swing.JTextField jtf_nominadeanombre1;
    private javax.swing.JTextField jtf_obserperiodoin;
    private javax.swing.JTextField jtf_operacionidias;
    private javax.swing.JTextField jtf_operacioniimpor;
    private javax.swing.JTextField jtf_periodo;
    private javax.swing.JTextField jtf_periodoff;
    private javax.swing.JTextField jtf_periodofi;
    private javax.swing.JTextField jtf_plazaidemp;
    private javax.swing.JTextField jtf_plazaidemp1;
    private javax.swing.JTextField jtf_plazaidplaza;
    private javax.swing.JTextField jtf_prenomina;
    private javax.swing.JTextField jtf_rzdescripcion;
    private javax.swing.JTextField jtf_rzpatron;
    private javax.swing.JTextField jtf_rzpatrondir;
    private javax.swing.JTextField jtf_rzrazon;
    private javax.swing.JTextField jtf_salariof;
    private javax.swing.JTextField jtf_salariof1;
    private javax.swing.JTextField jtf_salarionof;
    private javax.swing.JTextField jtf_salarionof1;
    private javax.swing.JTextField jtf_salarionofixdia;
    private javax.swing.JTextField jtf_salarionoftotal;
    private javax.swing.JTextField jtf_sueldobase1;
    private javax.swing.JTextField jtf_sueldobase10;
    private javax.swing.JTextField jtf_sueldobase2;
    private javax.swing.JTextField jtf_sueldobase3;
    private javax.swing.JTextField jtf_sueldobase4;
    private javax.swing.JTextField jtf_sueldobase5;
    private javax.swing.JTextField jtf_sueldobase6;
    private javax.swing.JTextField jtf_sueldobase7;
    private javax.swing.JTextField jtf_sueldobase8;
    private javax.swing.JTextField jtf_sueldobase9;
    private javax.swing.JTextField jtf_totald;
    private javax.swing.JTextField jtf_totald2;
    private javax.swing.JTextField jtf_totaldecf;
    private javax.swing.JTextField jtf_totaldecnof;
    private javax.swing.JTextField jtf_totalf;
    private javax.swing.JTextField jtf_totalf2;
    private javax.swing.JTextField jtf_totalimportenof;
    private javax.swing.JTextField jtf_totalnof;
    private javax.swing.JTextField jtf_totalnofd;
    private javax.swing.JTextField jtf_totalnofd2;
    private javax.swing.JTextField jtf_totalperf;
    private javax.swing.JTextField jtf_totalpernof;
    // End of variables declaration//GEN-END:variables


    public int print(Graphics graphics, PageFormat pageFormat, int pageIndex) throws PrinterException {
        if (pageIndex > 0) return NO_SUCH_PAGE;
        Graphics2D g2d = (Graphics2D)graphics;
        //Punto donde empezará a imprimir dentro la pagina (100, 50)
        g2d.translate(  pageFormat.getImageableX()+100,
                        pageFormat.getImageableY()+50);
        g2d.scale(0.50,0.50); //Reducción de la impresión al 50%
        //jPanel1.printAll(graphics);
        return PAGE_EXISTS;
    }


}
